-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
Hello,
I want to thank you for this awesome project. I'm switching to es6 and it's really helpful to have all the examples. :)
I'd like to avoid the register helper and use directly angular functions (directive, factory, controller...).
It works well for the controller, but not so well for the directives (the "final boss" :P).
Do you think it's possible to create a Directive base class which hold a factory method to create child classes (including the compile/link method tricks) ? If so, could you provide an example of such a class ?
So you could do :
class myCustomComponent extends Directive {
constructor(inject1, inject2) {}
customMethod1(){}
}OR
extends directly the "angular" object to make the switch invisible ?
Thanks again. :D
Metadata
Metadata
Assignees
Labels
No labels