- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroute.js
More file actions
Latest commit
20 lines (19 loc) · 762 Bytes
/
Copy pathroute.js
File metadata and controls
20 lines (19 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(function(){
varapp=angular.module("app.routes",['ngRoute']);
app.config(function($routeProvider){
$routeProvider
.when('/',{
templateUrl: './Home/home.html',
controller: 'HomeController as home'
}).when('/premier',{
templateUrl: './Premier/premier.html',
controller: 'PremierController as premier'
}).when('/popular',{
templateUrl: './Popular/popular.html',
controller: 'PopularController as popular'
}).when('/search',{
templateUrl: './Search/search.html',
controller: 'SearchController as search'
}).otherwise({redirectTo: '/'})
})
})()