1Angular uses a selector to determine which DOM object to target.
2The selector can be used in three different ways:
3- as a tag: { selector: 'my-component' }
4- as an attribute: { selector: '[my-attribute]'}
5- as a class: { selector: '.my-class' }
6
7`
8<my-component></mycomponent>
9<div my-app></div>
10<div class='myclass'></div>
11`
1> ng generate component <component-name> --inlineTemplate=true --inlineStyle=true
2