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

Commit

Permalink
feat(decorator): Add decorator template files
Browse files Browse the repository at this point in the history
  • Loading branch information
robinboehm committed Apr 29, 2013
1 parent ef0ae2c commit c9f80b3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/coffeescript-min/decorator.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

angular.module("<%= _.camelize(appname) %>App").config ["$provide", ($provide) ->
$provide.decorator "<%= _.camelize(name) %>", ($delegate) ->
# decorate the $delegate
$delegate
]
6 changes: 6 additions & 0 deletions templates/coffeescript/decorator.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

angular.module("<%= _.camelize(appname) %>App").config ($provide) ->
$provide.decorator "<%= _.camelize(name) %>", ($delegate) ->
# decorate the $delegate
$delegate
9 changes: 9 additions & 0 deletions templates/javascript-min/decorator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

angular.module('<%= _.camelize(appname) %>App')
.config( ['$provide', function ($provide) {
$provide.decorator('<%= _.camelize(name) %>', function($delegate){
// decorate the $delegate
return $delegate;
});
}]);
9 changes: 9 additions & 0 deletions templates/javascript/decorator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

angular.module('<%= _.camelize(appname) %>App')
.config(function ($provide) {
$provide.decorator('<%= _.camelize(name) %>', function($delegate){
// decorate the $delegate
return $delegate;
});
});

0 comments on commit c9f80b3

Please sign in to comment.