Code coverage report for app/app.js

Statements: 84.62% (11 / 13)      Branches: 100% (0 / 0)      Functions: 60% (3 / 5)      Lines: 84.62% (11 / 13)      Ignored: none     

All files » app/ » 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 521     1       1 2 2 2 2                             1       1 2     1                                  
(function() {
  'use strict';
 
  angular.element(document).ready(function() {
    angular.bootstrap(document, ['app']);
  });
 
  function config($stateProvider, $urlRouterProvider, $logProvider, $httpProvider) {
    $urlRouterProvider.otherwise('/');
    $logProvider.debugEnabled(true);
    $httpProvider.interceptors.push('httpInterceptor');
    $stateProvider
      .state('root', {
        views: {
          'header': {
            templateUrl: 'src/common/header.tpl.html',
            controller: 'HeaderCtrl'
          },
          'footer': {
            templateUrl: 'src/common/footer.tpl.html',
            controller: 'FooterCtrl'
          }
        }
      });
  }
 
  function MainCtrl($log) {
    $log.debug('MainCtrl laoded!');
  }
 
  function run($log) {
    $log.debug('App is running!');
  }
 
  angular.module('app', [
      'ui.router',
      'home',
      'getting-started',
      'common.header',
      'common.footer',
      'common.services.data',
      'common.directives.version',
      'common.filters.uppercase',
      'common.interceptors.http',
      'templates'
    ])
    .config(config)
    .run(run)
    .controller('MainCtrl', MainCtrl)
    .value('version', '1.1.0');
})();