This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(decorator): Add decorator template files
- Loading branch information
1 parent
ef0ae2c
commit c9f80b3
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}); | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}); | ||
}); |