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