Slides for my talk at the Vancouver AngularJS meetup group on TypeScript Decorators, how to use them and how to create your own. These slides are not complete without also looking at the code, which can be found on github:
https://github.com/aeisenberg/typescript-decorators
6. Decorators are not
annotations
Decorators are metadata AND semantics
Java annotations are ONLY metadata
Annotation processing happens separately
I like annotations better since behaviour is
independent from metadata.
Separation of Concerns
7. Decorators are not
annotations
Decorators are metadata AND semantics
Java annotations are ONLY metadata
Annotation processing happens separately
I like annotations better since behaviour is
independent from metadata.
Separation of Concerns
Java Devs, don’t get confused!
9. When should I use
decorators?
They provide metadata
They specify extra behaviour
They implement cross-cutting concerns