angular-package
TwitterGitHub
Text
Text
  • Introduction
  • Benefits
  • Getting started
    • General concepts
    • Skeleton
    • Installation
    • Public API
  • Wrapper
    • Basic concepts
    • Wrap
      • Generic type variables
      • Instance accessors
      • Instance properties
      • Static methods
      • Wrap() constructor
      • Instance methods
      • Examples
    • Wrapper
      • Generic type variables
      • Static properties
      • Instance accessors
      • Static methods
      • Wrapper() constructor
      • Instance methods
      • Examples
    • Wrapped
      • Generic type variables
      • Instance accessors
      • Instance properties
      • Static methods
      • Wrapped() constructor
      • Instance methods
      • Types
      • Examples
  • Tag
    • Basic concepts
    • Tag
      • Generic type variables
      • Static accessors
      • Static properties
      • Instance accessors
      • Instance properties
      • Static methods
      • Tag() constructor
      • Instance methods
      • Types
      • Examples
    • BBCodeTag
      • Static methods
      • BBCodeTag() constructor
    • HtmlTag
      • Generic type variables
      • HtmlTag() constructor
    • Tags
    • Tagged
  • Main
    • AllowedChars
    • Attribute
      • Generic type variables
      • Instance accessors
      • Instance properties
      • Static methods
      • Attribute() constructor
      • Instance methods
    • Attributes
    • Template
    • Text
  • Legend
    • Property tags
  • Other
    • Contact
    • Sponsor
  • More versions
Powered by GitBook
On this page
  • Public
  • Wrapped.prototype.closing
  • Wrapped.prototype.opening
  • Wrapped.prototype.text
  • Wrapped.prototype.value
  • [Symbol.toStringTag]

Was this helpful?

  1. Wrapper
  2. Wrapped

Instance accessors

PreviousGeneric type variablesNextInstance properties

Last updated 3 years ago

Was this helpful?

Public

Wrapped.prototype.closing

The accessor gets the of the .

wrapped.class.ts
public get closing(): Closing {
  return this.#closing;
}

Returns

The return value is the of a generic type variable .

Wrapped.prototype.opening

The accessor gets the of the .

wrapped.class.ts
public get opening(): Opening {
  return this.#opening;
}

Returns

Wrapped.prototype.text

wrapped.class.ts
public get text(): Text {
  return this.#text;
}

Returns

Wrapped.prototype.value

wrapped.class.ts
public get value(): `${Opening}${Text}${Closing}` {
  return this.valueOf();
}

Returns

[Symbol.toStringTag]

Good to know: The property can be read by the typeOf() function of the type package.

wrapped.class.ts
public get [Symbol.toStringTag](): string {
  return 'wrapped';
}

Example usage

// Example usage.
import { Wrap, Wrapped } from '@angular-package/text';
import { typeOf } from '@angular-package/type';

// Define the Wrapped<"[Oh no, I am wrapped]", "[", "]">.
const wrapped = new Wrapped(`[Oh no, I am wrapped]`, new Wrap('[', ']'));

// Returns 'wrapped'.
typeOf(wrapped);

The return value is the of a generic type variable .

The accessor gets the text.

The return value is the text of a generic type variable .

The accessor gets the wrapped text primitive value of a specified object.

The return value is the text of a generic type variable in order , , on the template.

The property, with the help of of Symbol, changes the default object tag to wrapped for an instance of the .

get
get
toStringTag
Wrapped
get
get
opening
wrap opening
Opening
Text
Opening
Text
Closing
Closing
closing
wrap
wrap closing
wrap