Last active
May 12, 2017 18:44
-
-
Save giancarlosisasi/597377f3cff91194b09e1bd6c54bc85c to your computer and use it in GitHub Desktop.
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 characters
| (function() { | |
| 'use strict'; | |
| angular.module('app', ['LocalStorageModule', | |
| 'cleave.js', | |
| 'ngAnimate', | |
| 'ngRoute', | |
| 'ui.router', | |
| 'templates']) | |
| .config(['$stateProvider', '$authProvider', '$urlRouterProvider', '$locationProvider', function ($stateProvider, $authProvider, $urlRouterProvider, $locationProvider) { | |
| $stateProvider | |
| .state('landing-home', { | |
| url: '/', | |
| templateUrl: 'landing/home.html', | |
| controller: 'LandingHomeCtrl', | |
| controllerAs: 'vm' | |
| }) | |
| .state('comparator-index', { | |
| url: '/comparator?rut', | |
| templateUrl: 'comparator/index.html', | |
| controller: 'ComparatorIndexCtrl', | |
| controllerAs: 'vm' | |
| }) | |
| .state('comparator-simulator', { | |
| url: '/comparator/simulator/:rut', | |
| templateUrl: 'comparator/simulator.html', | |
| controller: 'ComparatorSimulatorCtrl', | |
| controllerAs: 'vm' | |
| }) | |
| .state('admin-index', { | |
| url: '/admin', | |
| templateUrl: 'admin/index.html', | |
| controller: 'AdminIndexCtrl', | |
| controllerAs: 'vm' | |
| }) | |
| .state('dashboard-index', { | |
| url: '/dashboard', | |
| templateUrl: 'dashboard/dashboard-index.html', | |
| controller: 'DashboardIndexCtrl', | |
| controllerAs: 'vm' | |
| }) | |
| $urlRouterProvider.otherwise('/'); | |
| $locationProvider.html5Mode({ | |
| enabled: true, | |
| requireBase: false | |
| }); | |
| }]); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment