-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.js
45 lines (43 loc) · 1.21 KB
/
routes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* @author Piyush Shrivastava
*/
var appModule = angular.module("appModule", ['ngRoute', 'ui.bootstrap', 'ngSanitize']);
appModule.config(function ($routeProvider, $locationProvider) {
$locationProvider.hashPrefix('');
$routeProvider.
when('/', {
templateUrl: 'view/home.html',
controller: 'HomeController'
}).
when('/skills', {
templateUrl: 'view/skills.html',
controller: 'SkillsController'
}).
when('/experience', {
templateUrl: 'view/experience.html',
controller: 'ExperienceController'
}).
when('/projects', {
templateUrl: 'view/projects.html',
controller: 'ProjectsController'
}).
when('/education', {
templateUrl: 'view/education.html',
controller: 'EducationController'
}).
when('/achievements', {
templateUrl: 'view/achievements.html',
controller: 'AchievementsController'
}).
when('/personal-info', {
templateUrl: 'view/personal-info.html',
controller: 'PersonalInfoController'
}).
when('/resume', {
templateUrl: 'view/resume.html',
controller: 'ResumeController'
}).
otherwise({
redirectTo: '/'
});
});