3 ms·
> Class Decorators (Stage 2) Does it means both Typescript and AngularJS implement/use an experimental feature that is still under discussion as of now, in pro
by camus2 9y ago
> Class Decorators (Stage 2)
Does it means both Typescript and AngularJS implement/use an experimental feature that is still under discussion as of now, in production? this is a bit risky.
- dean177 9y agoYep, interestingly the decorators proposal has changed significantly since it was in stage-0. So much so that this exists: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy https://github.com/loganfsmyth/babel-plugin-transform-decora...
- rhencke 9y agoTo be fair, though, you must explicitly opt in to using decorators in TypeScript via --experimentalDecorators, and the documentation for said switch states: "Decorators are an experimental feature that may change in future releases."
- evmar 9y agoAngular uses the decorator syntax, with a preprocessor that gives it different meaning.