Angular $stateProvider vistas por url

.config( function($stateProvider, $urlRouterProvider) { $stateProvider .state('inicio',{ url: '', templateUrl: 'templates/inicio.html', controller: 'InicioCtrl' }) .state('Inicio.a',{ url: '/', template: 'templates/inicio.html', controller: 'inicioCtrl' }) ; $urlRouterProvider.otherwise(''); } );

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.