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
  • Wrap.prototype.closing
  • Wrap.prototype.opening
  • Wrap.prototype.wrap
  • Wrap.prototype.value
  • [Symbol.toStringTag]

Was this helpful?

  1. Wrapper
  2. Wrap

Instance accessors

The properties of `Wrap` the string object.

PreviousGeneric type variablesNextInstance properties

Last updated 3 years ago

Was this helpful?

Public

Wrap.prototype.closing

The accessor gets the of the wrap by returning the property of the specified object.

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

Returns

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

Wrap.prototype.opening

The accessor gets the of the wrap by returning the property of the specified object.

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

Returns

Wrap.prototype.wrap

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

Returns

Wrap.prototype.value

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

Returns

[Symbol.toStringTag]

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

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

Example usage

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

// Define the wrap.
const tagWrap = new Wrap('[', ']');

// Returns wrap.
typeOf(tagWrap);

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

The accessor gets the wrap consisting of the opening and closing.

The return value is the wrap of a generic type variable in order and on the template.

The accessor gets the wrap consisting of the opening and closing.

The return value is the wrap of a generic type variable in order and on the template.

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

get
get
get
toStringTag
Wrap
get
get
Opening
Closing
Opening
Closing
Opening
opening
Closing
closing
closing
opening
#closing
#opening