Update routes, mongoose schema and web flow
This commit is contained in:
36
app/app.js
Normal file
36
app/app.js
Normal file
@@ -0,0 +1,36 @@
|
||||
(function (){
|
||||
'user strict';
|
||||
|
||||
angular.module('app', [
|
||||
'app.course',
|
||||
'app.login',
|
||||
'app.professor',
|
||||
'app.reports',
|
||||
'app.section',
|
||||
'app.student',
|
||||
'ngResource',
|
||||
'ui.router'
|
||||
])
|
||||
|
||||
.config(function($stateProvider, $urlRouterProvider) {
|
||||
|
||||
$urlRouterProvider.otherwise('/');
|
||||
|
||||
$stateProvider
|
||||
.state('login', {
|
||||
url: '/login',
|
||||
views: {
|
||||
content: {
|
||||
templateUrl: 'partials/login/login.html',
|
||||
controller: 'loginCtrl',
|
||||
controllerAs: 'vm'
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
.run(function ($rootScope) {
|
||||
$rootScope.domainUrl = 'Localhost:3000';
|
||||
});
|
||||
|
||||
})();
|
Reference in New Issue
Block a user