mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-10 15:48:27 -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'
|
|
});
|
|
}]); |