The accessor returns the attribute name of a specified object.
attribute.class.ts
public get name(): Name {
return this.#name;
}
Returns
The return value is the attribute name of a generic type variable .
Example usage
// 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;