-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
26 lines (25 loc) · 786 Bytes
/
Copy pathapp.js
File metadata and controls
26 lines (25 loc) · 786 Bytes
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
(function () {
var app = angular.module('plunker', ["ngRoute"]);
app.config(function ($routeProvider) {
$routeProvider
.when("/main", {
templateUrl: "main.html",
controller: "MainCtrl"
})
.when("/user/:type", {
templateUrl: "user.html",
controller: "UserCtrl"
})
.when("/film/:type/:id", {
templateUrl: "films/films.html",
controller: "FilmsCtrl"
})
.when("/film/:type/:id/:asdf/:qwer", {
templateUrl: "films/films.html",
controller: "FilmsCtrl"
})
.otherwise({
redirectTo: "/main"
})
});
})();