toString()

Attribute.prototype.toString()

Returns attribute, the primitive value of a specified Attribute object.

attribute.class.ts
public toString(): `${Name}="${Value}"` {
  return this.valueOf();
}

Returns

The return value is the attribute of generic type variables Name and Value on the template ${Name}="${Value}".

Example usage

// Example usage.
import { Attribute } from '@angular-package/tag';

Last updated