Answers for "angular selector"

1

angular selector

Angular uses a selector to determine which DOM object to target.
The selector can be used in three different ways:
- as a tag: { selector: 'my-component' }
- as an attribute: { selector: '[my-attribute]'}
- as a class: { selector: '.my-class' }

`
<my-component></mycomponent>
<div my-app></div> 
<div class='myclass'></div>
`
Posted by: Guest on May-23-2021
0

angular inline component

> ng generate component <component-name> --inlineTemplate=true --inlineStyle=true
Posted by: Guest on September-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language