client/app/scripts/app.js
'use strict';
/**
* @ngdoc overview
* @name dreApp
* @description
* # dreApp
*
* Main module of the application.
*/
angular
.module('dreApp', [
'ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch',
'chart.js',
'ui.bootstrap',
'angulartics',
'angulartics.google.analytics',
'ngDialog'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/splash.html',
controller: 'SplashCtrl'
})
.when('/about', {
templateUrl: 'views/about.html',
controller: 'AboutCtrl'
})
.when('/search', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.otherwise({
redirectTo: '/'
});
});