Update routes, mongoose schema and web flow

This commit is contained in:
Reynaldo Reyes
2016-03-27 23:24:28 -04:30
parent b8b65e64d7
commit 7fff896e43
34 changed files with 735 additions and 631 deletions

36
app/app.js Normal file
View 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';
});
})();