I know one way. Use the component as a directive. That is, selector : '[appCustomComponent]', as selector : '[appCustomComponent]', Is there some more convenient way? So I remember inside the directive can not embed html
|
I know one way. Use the component as a directive. That is, selector : '[appCustomComponent]', as selector : '[appCustomComponent]', Is there some more convenient way? So I remember inside the directive can not embed html
Source: https://ru.stackoverflow.com/questions/819669/
All Articles
<app-input><input type="text"></app-input>. And you need<input type="text">. - Nikolay