Say I have the following markup:
<my-comp myDirective></my-comp>
Is there any way I can access the component instance from the directive?
More specifically I want to be able to access the properties and methods of MyComponent
from MyDirective
, ideally without adding anything to the HTML above.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…