Monday, April 2, 2018

Did you know that you can use the selector for an Angular 4 component not just as the definition for its own tag at the templates, but also...

...like so:

<tr my-selector-name></tr>

 
 

It may be nested inline in another tag!

 
 

Addendum 5/2/2018: At the component's metadata properties the string for selector should start and end with square brackets in order for this to work.

No comments:

Post a Comment