forked from angular/angular-seed
-
Notifications
You must be signed in to change notification settings - Fork 31
/
application.js
executable file
·20 lines (16 loc) · 927 Bytes
/
application.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
* The application file bootstraps the angular app by initializing the main module and
* creating namespaces and moduled for controllers, filters, services, and directives.
*/
var Application = Application || {};
Application.Constants = angular.module('application.constants', []);
Application.Services = angular.module('application.services', []);
Application.Controllers = angular.module('application.controllers', []);
Application.Filters = angular.module('application.filters', []);
Application.Directives = angular.module('application.directives', []);
angular.module('application', ['ngRoute', 'application.filters', 'application.services', 'application.directives', 'application.constants', 'application.controllers']).
config(['$routeProvider', function ($routeProvider) {
'use strict';
$routeProvider.
when('/:id/', {templateUrl: 'templates/details-template.html'});
}]);