forked from angular/protractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
24 lines (22 loc) · 1.19 KB
/
app.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
'use strict';
// Declare app level module which depends on filters, and services
angular.module('myApp', ['ngAnimate', 'ngRoute', 'myApp.appVersion']).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/repeater', {templateUrl: 'repeater/repeater.html', controller: RepeaterCtrl});
$routeProvider.when('/bindings', {templateUrl: 'bindings/bindings.html', controller: BindingsCtrl});
$routeProvider.when('/form', {templateUrl: 'form/form.html', controller: FormCtrl});
$routeProvider.when('/async', {templateUrl: 'async/async.html', controller: AsyncCtrl});
$routeProvider.when('/conflict', {templateUrl: 'conflict/conflict.html', controller: ConflictCtrl});
$routeProvider.when('/polling', {templateUrl: 'polling/polling.html', controller: PollingCtrl});
$routeProvider.when('/animation', {templateUrl: 'animation/animation.html', controller: AnimationCtrl});
$routeProvider.when('/slowloader', {
templateUrl: 'polling/polling.html',
controller: PollingCtrl,
resolve: {
slow: function($timeout) {
return $timeout(function() {}, 5000);
}
}
});
$routeProvider.otherwise({redirectTo: '/form'});
}]);