#72 - cleand up main menu & added ID to routes

This commit is contained in:
Sagi Dayan 2015-06-26 14:08:23 +03:00
parent 2f870ba050
commit 9d49ba5f0a
2 changed files with 7 additions and 12 deletions

View file

@ -46,7 +46,7 @@ app.config(['$routeProvider', '$locationProvider',
templateUrl: 'templates/views/tasks.html',
controller: 'tasksController'
})
.when('/myClasses', {
.when('/myClasses/:campusId', {
templateUrl: 'templates/views/myClasses.html',
controller: 'myClassesController'
})
@ -54,7 +54,7 @@ app.config(['$routeProvider', '$locationProvider',
templateUrl: 'templates/views/newTask.html',
controller: 'newTasksController'
})
.when('/projects', {
.when('/projects/:classId', {
templateUrl: 'templates/views/projects.html',
controller: 'projectsController'
})

View file

@ -23,20 +23,15 @@ angular.module('SeHub')
"style": "selected",
"route": "/home"
}, {
"title": "My Campuses",
"icon": "fa fa-university",
"title": "Courses",
"icon": "fa fa-graduation-cap",
"style": "",
"route": "/campuses"
}, {
"title": "My Classes",
"icon": "fa fa-graduation-cap",
"style": "",
"route": "/myClasses"
}, {
"title": "My Projects",
"title": "Projects",
"icon": "fa fa-cube",
"style": "",
"route": "/projects"
"route": "/myClasses"
}, {
"title": "Tasks",
"icon": "fa fa-clipboard",