mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-11 07:54:55 -05:00
14 lines
513 B
JavaScript
14 lines
513 B
JavaScript
angular.module('PanelRoutes', ['ui.router']).config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function($stateProvider, $urlRouterProvider, $locationProvider) {
|
|
$locationProvider.html5Mode(true);
|
|
|
|
$urlRouterProvider.otherwise('/panel');
|
|
|
|
$stateProvider
|
|
.state('/panel', {
|
|
url: '/panel',
|
|
templateUrl: '/views/panel-home.html'
|
|
}).state('/panel/api', {
|
|
url: '/panel/api',
|
|
templateUrl: '/views/panel-api.html'
|
|
});
|
|
}]); |