Last active
March 22, 2017 07:42
-
-
Save k1r0s/8bef4433231a5534f3da05790c0d2a3f to your computer and use it in GitHub Desktop.
kaop showcase about advice placements
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
var Dummy = Class({ | |
someMethod: [ //decoratedMethod | |
"subscribe","$inject", //befores | |
function($$dep1){ | |
//method body | |
}, | |
"trigger: 'action'", //afters (advice with an argument) | |
], | |
anotherMethod: function(){ | |
/* method without advices */ | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment