name
Last updated
Attribute.prototype.nameThe get accessor returns the attribute name of a specified Attribute object.
public get name(): Name {
return this.#name;
}The return value is the attribute name of a generic type variable Name.
// Example usage.
import { Attribute } from '@angular-package/tag';
// Define a new Attribute.
const colorRed = new Attribute('color', 'red');
// Returns color of type "color".
colorRed.name;Last updated