dustinspecker / generator-ng-poly

Yeoman generator for modular AngularJS apps with Gulp and optional Polymer support
MIT License
237 stars 50 forks source link

Implement directives as classes when using TypeScript #316

Closed jeffarese closed 8 years ago

jeffarese commented 8 years ago

To fully use the benefits of TypeScript, it would be good to implement directives as classes, as shown here:

http://stackoverflow.com/questions/23535994/implementing-angularjs-directives-as-classes-in-typescript

dustinspecker commented 8 years ago

That makes sense especially with how ng2's components are looking.

I'm not sure when I'll have time to make these changes, but if anyone is up making a PR that would be awesome.

jeffarese commented 8 years ago

I'll try to make an approach myself and make a PR ;)

jeffarese commented 8 years ago

325 Here's my approach, I'm using it on my app and it's working pretty well ;)