attr
The attr method is used to get or set attributes of an element.
Direct Use
You can directly use the attr method to get or set the attributes of an element.
I am target 1
I am target 2
logger
Using Template Syntax
You can also use attr:aaa="bbb" to set the target element's aaa attribute to the value of component bbb. This approach is especially useful for component rendering.
I am target