Last active
August 29, 2015 14:13
-
-
Save raphaelLacerda/97a1fc6a9e9aae82dbe8 to your computer and use it in GitHub Desktop.
Revisions
-
raphaelLacerda revised this gist
Feb 3, 2015 . 1 changed file with 32 additions and 37 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,18 +4,18 @@ var caelumapp = angular.module('caelumapp', [ 'ngRoute', 'app.login']); caelumapp.config(['$routeProvider','$locationProvider', function($routeProvider, $locationProvider) { $routeProvider .when('/login', { templateUrl: "app/login/paginas/login.html", controller : "LoginController", controllerAs: "vm" }) .when('/cadastro/usuario', { templateUrl: "app/usuario/paginas/usuario-cadastro.html", controller: 'UsuarioController', controllerAs: 'vm' }) .otherwise({ redirectTo : '/login' }); } ]); @@ -31,33 +31,28 @@ caelumapp.config(['$routeProvider','$locationProvider', var caelumapp = angular.module('caelumapp', [ 'ui.router', 'app.login']); caelumapp.config(['$stateProvider', '$urlRouterProvider', '$httpProvider', function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise("/login"); $stateProvider .state('login', { url: "/login", templateUrl: "app/login/paginas/login.html", controller : "LoginController", controllerAs: "vm" }) .state('cadastroDeUsuario', { url: "/cadastro/usuario", templateUrl: "app/usuario/paginas/usuario-cadastro.html", controller: 'UsuarioController', controllerAs: 'vm' }) .state('pesquisaDeUsuario', { url: "/usuarios/:id", templateUrl: "app/usuario/paginas/usuario-detalhe.html", controller: 'UsuarioDetalheController', controllerAs: 'vm' }); } ]); -
raphaelLacerda revised this gist
Feb 3, 2015 . 1 changed file with 17 additions and 21 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,27 +1,23 @@ var caelumapp = angular.module('caelumapp', [ 'ngRoute', 'app.login']); caelumapp.config(['$routeProvider','$locationProvider', function($routeProvider, $locationProvider) { $routeProvider .when('/login', {templateUrl: "app/login/paginas/login.html", controller : "LoginController", controllerAs: "vm" }) .when('/cadastro/usuario', {templateUrl: "app/usuario/paginas/usuario-cadastro.html", controller: 'UsuarioController', controllerAs: 'vm' }) .otherwise( {redirectTo : '/login' }); } ]); -
raphaelLacerda revised this gist
Jan 20, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ caelumapp controller : "LoginController", controllerAs: "vm" }) .when('/cadastro/usuario', { templateUrl: "app/usuario/paginas/usuario-cadastro.html", controller: 'UsuarioController', controllerAs: 'vm' -
raphaelLacerda created this gist
Jan 19, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,67 @@ var caelumapp = angular.module('caelumapp', [ 'ngRoute', 'app.login']); caelumapp .config([ '$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) { $routeProvider .when('/login', { templateUrl: "app/login/paginas/login.html", controller : "LoginController", controllerAs: "vm" }) .when('/usuario-cadastro', { templateUrl: "app/usuario/paginas/usuario-cadastro.html", controller: 'UsuarioController', controllerAs: 'vm' }) .otherwise({ redirectTo : '/login' }); } ]); ----------------------após Angular UI Router--------------- var caelumapp = angular.module('caelumapp', [ 'ui.router', 'app.login']); caelumapp .config([ '$stateProvider', '$urlRouterProvider', '$httpProvider', function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise("/login"); $stateProvider .state('login', { url: "/login", templateUrl: "app/login/paginas/login.html", controller : "LoginController", controllerAs: "vm" }) .state('cadastroDeUsuario', { url: "/cadastro/usuario", templateUrl: "app/usuario/paginas/usuario-cadastro.html", controller: 'UsuarioController', controllerAs: 'vm' }) .state('pesquisaDeUsuario', { url: "/usuarios/:id", templateUrl: "app/usuario/paginas/usuario-detalhe.html", controller: 'UsuarioDetalheController', controllerAs: 'vm' }); } ]);