Skip to content

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
Lines changed: 7 additions & 0 deletions
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+
]
Lines changed: 6 additions & 0 deletions
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
Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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)