valueOf()

Attribute.prototype.valueOf()

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

attribute.class.ts
public valueOf(): `${Name}="${Value}"` {
  return super.valueOf() as any;
}

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