Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
`
 
PREVIOUS NEXT
Tagged: #angular #selector
ADD COMMENT
Topic
Name
7+1 =