540co/ads-bpa

View on GitHub
client/app/scripts/app.js

Summary

Maintainability
A
0 mins
Test Coverage
'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: '/'
      });
  });