Tag
PackagesTwitterGitHub
  • Introduction
  • General concepts
  • Getting started
    • Skeleton
    • Installation
    • Public API
  • Attribute
    • Code
    • Attribute {}
    • Generic type variables
    • ★ Attribute() constructor
    • Instance
      • Accessors
        • attribute
        • name
        • value
        • [Symbol.toStringTag]
      • Properties
        • #name
        • #value
      • Methods
        • toArray()
        • toObject()
        • toString()
        • valueOf()
    • Static
      • Methods
        • isAttribute()
    • Usage
  • Attributes
    • Attributes {}
    • Generic type variables
    • Instance
      • Accessors
      • Properties
    • Attributes() constructor
    • Instance methods
    • Usage
  • Tag
    • Tag {}
    • Usage
  • Tag Extension
    • TagExtension {}
    • Usage
  • tags
    • Tags {}
    • Usage
  • BBCode
    • BBCode {}
    • Usage
  • Html
    • HTML {}
    • Usage
  • Variable
    • Variable {}
    • Usage
  • Variables
    • Variables {}
    • Usage
  • Types
    • ClosingTag
    • OpeningTag
    • TaggedText
  • License
    • MIT
  • Contact
    • ⋯ Chat
    • @ Email
  • Donate
    • ฿ Cryptocurrency
    • $ Fiat
Powered by GitBook
On this page
  • Attribute.prototype.toString()
  • Returns
  • Example usage

Was this helpful?

Edit on GitHub
  1. Attribute
  2. Instance
  3. Methods

toString()

PrevioustoObject()NextvalueOf()

Last updated 3 years ago

Was this helpful?

Attribute.prototype.toString()

Returns attribute, the primitive value of a specified object.

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

Returns

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

Example usage

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

Attribute
Name
Value