Using A Component
prerequisites
The selector for the above component would be <my-component> </my-component>. This is defined by the selector property on line 4.
Using the Component
We can reuse any component by placing its selector in another components HTML. A selector is just like <div></div> or <img> but in our case it will place all the html for that component.
Last updated