Advertisement
rogerin

Untitled

Dec 7th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. $urlRouterProvider.otherwise('/');
  2.         $stateProvider    
  3.         .state('resumo', {
  4.             url: '/',
  5.             templateUrl: 'views/home/resumo.html',
  6.             controller: 'IndexCtr'
  7.         }).state('resumo.mapa', {
  8.             url: 'mapa/:imei',
  9.             templateUrl: 'views/testes/mapa.html',
  10.             controller: 'TesteCtr'
  11.         }).state('cliente', {
  12.             url: '/cliente',
  13.             templateUrl: 'views/cliente/index.html'
  14.         }).state('cliente.listar', {
  15.             url: '/listar',
  16.             templateUrl: 'views/cliente/clientes.html',
  17.             controller: function($scope) {
  18.                 $scope.clientes = ['Rogerio Alencar', 'Yolanda S2', 'Cristina WhatsApp'];
  19.             }
  20.         }).state('anuncio', {
  21.             url: '/anuncio',
  22.             templateUrl: 'views/cliente/anuncio/index.html',
  23.             controller: 'AnuncioCtr'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement