Files
MASA/app/app.js

51 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

2016-02-29 00:49:18 -04:30
(function (){
'user strict';
angular.module('app', [
'app.course',
'app.login',
'app.professor',
'app.reports',
'app.section',
'app.student',
2016-06-07 22:47:21 -04:00
'chart.js',
'ngResource',
'ui.router'
2016-02-29 00:49:18 -04:30
])
.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
2016-05-20 23:00:34 -04:00
$stateProvider
.state('index', {
abstract: true,
views: {
'sidebar': {
templateUrl: 'partials/sidebar/sidebar.html',
controller: 'SidebarCtrl'
},
'navbar': {
templateUrl: 'partials/sidebar/navbar.html',
controller: 'NavbarCtrl',
controllerAs: 'vm'
},
}
})
2016-02-29 00:49:18 -04:30
.state('login', {
url: '/login',
views: {
content: {
2016-05-20 23:00:34 -04:00
templateUrl: 'partials/login/login.html',
controller: 'loginCtrl',
controllerAs: 'vm'
}
2016-02-29 00:49:18 -04:30
}
2016-05-20 23:00:34 -04:00
})
2016-02-29 00:49:18 -04:30
})
.run(function ($rootScope) {
2016-12-13 12:47:09 -04:00
$rootScope.domainUrl = '190.169.74.203:3000';
2016-02-29 00:49:18 -04:30
});
})();