name

Attribute.prototype.name

The get accessor returns the attribute name of a specified Attribute object.

attribute.class.ts
public get name(): Name {
  return this.#name;
}

Returns

The return value is the attribute name of a generic type variable Name.

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;

Last updated