Hi CSchulz,

Sure, a decorator is just a normal function, that gets the class as a 
parameter. The makeDecorator in Angular itself is just a tool to add some 
common stuff, wich might be handy if you need to write ton's of decorators.

Decorators are a typescript thing. Angular uses those but is not the 
creator. (they will land in ES20-something, eventually) 
Have a look at the documentation 
<https://www.typescriptlang.org/docs/handbook/decorators.html> for some 
more clues. (they are currently at stage 2. Have a look at the official 
proposal <https://github.com/tc39/proposal-decorators>)

Regards
Sander

-- 
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