-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.js
More file actions
28 lines (23 loc) · 813 Bytes
/
module.js
File metadata and controls
28 lines (23 loc) · 813 Bytes
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
/**
* @file Instantiates and configures angular modules for your module.
*/
define(['angular'], function (ng) {
'use strict';
ng.module('cs_modal.services', []);
var module = ng.module('cs_modal', [
'cs_common',
'cs_modal.services',
'ui.bootstrap'
]);
module.config( [ '$provide', 'TemplateProvider', function( $provide, TemplateProvider ) {
$provide.decorator('modalBackdropDirective', [ '$delegate', function( $delegate ) {
$delegate[0].templateUrl = TemplateProvider.view('cs_modal', $delegate[0].name);
return $delegate;
}]);
$provide.decorator('modalWindowDirective', [ '$delegate', function( $delegate ) {
$delegate[0].templateUrl = TemplateProvider.view('cs_modal', $delegate[0].name);
return $delegate;
}]);
}]);
return module;
});