-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.js
More file actions
35 lines (34 loc) · 1.44 KB
/
app.js
File metadata and controls
35 lines (34 loc) · 1.44 KB
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
// Self executable function that handles the site routes and get's all the external modules
// ngSamples = Application module
// ngRoute = handles the routes
// ui.bootstrap = helps with the bootstrap UI
// ngCookies = helps with creating cookies
// ngulartics & angulartics.segment = helps with tracking user clicks on the page that get sent to Segment
// ngAnimate = for using Angular animations
(function() {
var app = angular.module('ngSamples', ['ngRoute', 'ui.bootstrap', 'ui.bootstrap.modal', 'ngCookies', 'angulartics', 'angulartics.segment', 'ngAnimate', 'ngSanitize', 'ngDialog', 'ngMessages']);
app.config(function($routeProvider) {
$routeProvider
.when('/', {
controller: 'samplesController',
templateUrl: 'app/views/home.html'
})
.when('/solutions', {
controller: 'samplesController',
templateUrl: 'app/views/solutions.html'
})
.when('/blogs', {
controller: 'samplesController',
templateUrl: 'app/views/blogs.html'
})
.when('/samples', {
controller: 'samplesController',
templateUrl: 'app/views/samples.html'
})
.when('/about', {
controller: 'samplesController',
templateUrl: 'app/views/about.html'
})
.otherwise( { redirectTo: '/' } );
});
}());