Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Commit c9f80b3

Browse files
committed
feat(decorator): Add decorator template files
1 parent ef0ae2c commit c9f80b3

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
angular.module("<%= _.camelize(appname) %>App").config ["$provide", ($provide) ->
4+
$provide.decorator "<%= _.camelize(name) %>", ($delegate) ->
5+
# decorate the $delegate
6+
$delegate
7+
]
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
angular.module("<%= _.camelize(appname) %>App").config ($provide) ->
4+
$provide.decorator "<%= _.camelize(name) %>", ($delegate) ->
5+
# decorate the $delegate
6+
$delegate

templates/javascript-min/decorator.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
angular.module('<%= _.camelize(appname) %>App')
4+
.config( ['$provide', function ($provide) {
5+
$provide.decorator('<%= _.camelize(name) %>', function($delegate){
6+
// decorate the $delegate
7+
return $delegate;
8+
});
9+
}]);

templates/javascript/decorator.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
angular.module('<%= _.camelize(appname) %>App')
4+
.config(function ($provide) {
5+
$provide.decorator('<%= _.camelize(name) %>', function($delegate){
6+
// decorate the $delegate
7+
return $delegate;
8+
});
9+
});

0 commit comments

Comments
 (0)