★ Attribute() constructor
Attribute()
Attribute()
Creates a new Attribute
instance with the name and value.
attribute.class.ts
Parameters
Name: type | Description |
---|---|
| The attribute name of a generic type variable |
| The attribute value of a generic type variable |
Returns
The return value is a new Attribute
instance with the primitive value of the provided name
and value
on the template ${Name}="${Value}"
.
Example usage
Last updated