I would like to have a decorator for $onInit of components to execute common 
functionality. Something like preInit postInit applicable to all components (or 
optionally selective components) I came up with some thing like this : 
https://jsbin.com/vevexik/1/edit?html,js
any thought if above is best way to go or any suggestions?
I have raised this on 
https://stackoverflow.com/questions/47604461/way-to-decorate-angular-1-5-oninit-component-for-common-functionality
 as well

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to