Skip to content

Instantly share code, notes, and snippets.

@caionorder
Created October 31, 2016 13:04
Show Gist options
  • Save caionorder/f63005a4fed947d1a87fa5c5295324f2 to your computer and use it in GitHub Desktop.
Save caionorder/f63005a4fed947d1a87fa5c5295324f2 to your computer and use it in GitHub Desktop.
angular.module('starter.controllers', [])
.controller('AppCtrl', function($scope) {
})
.controller('TiposCtrl', function($scope) {
})
.controller('ProcessosCtrl', function($scope) {
})
.controller('TipoCtrl', function($scope,Estrutura,$stateParams) {
var tipo = $stateParams.i;
$scope.opcoes = Estrutura.tipo(tipo);
$scope.tipo = tipo;
})
.controller('TelasCtrl', function($scope,Estrutura,$stateParams) {
var tipo = $stateParams.i;
var id = $stateParams.id;
var telas = Estrutura.tipo(tipo);
console.debug(telas);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment