> For the complete documentation index, see [llms.txt](https://docs.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.angular-package.dev/text/wrapper/wrap.md).

# Wrap

The `Wrap` object represents the [immutable](https://developer.mozilla.org/en-US/docs/Glossary/Immutable) wrap of the [opening](/text/wrapper/basic-concepts.md#opening) and [closing](/text/wrapper/basic-concepts.md#closing). It is designed to preserve the names of the opening and closing.

### Instance accessors

<table><thead><tr><th width="150">Wrap.prototype.</th><th>Decription</th><th data-hidden></th></tr></thead><tbody><tr><td><a href="/pages/QTYxQh3MKwTJRj5pYA28#wrap.prototype.closing">closing</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor gets the <a href="/pages/6Nle1uMltWSb2uh6hgTQ#closing">closing</a> of the wrap by returning the <a href="/pages/GWnWPzSqNz97LBWzdDog#closing"><code>#closing</code></a> property of the specified object.</td><td></td></tr><tr><td><a href="/pages/QTYxQh3MKwTJRj5pYA28#wrap.prototype.opening">opening</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor gets the <a href="/pages/6Nle1uMltWSb2uh6hgTQ#opening">opening</a> of the wrap by returning the <a href="/pages/GWnWPzSqNz97LBWzdDog#opening"><code>#opening</code></a> property of the specified object.</td><td></td></tr><tr><td><a href="/pages/QTYxQh3MKwTJRj5pYA28#wrap.prototype.wrap">wrap</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor gets the wrap consisting of the opening and closing.</td><td></td></tr><tr><td><a href="/pages/QTYxQh3MKwTJRj5pYA28#wrap.prototype.value">value</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor gets the wrap consisting of the opening and closing.</td><td></td></tr><tr><td><a href="/pages/QTYxQh3MKwTJRj5pYA28#symbol.tostringtag">[Symbol.toStringTag]</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor, with the help of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag"><code>toStringTag</code></a> of Symbol, changes the default object tag to <code>wrap</code> for an instance of the <a href="/pages/vlRmumtdkPHxEUrU51WO"><code>Wrap</code></a>.</td><td></td></tr></tbody></table>

### Static methods

<table><thead><tr><th width="159.3850553872428">Wrap.</th><th>Description</th></tr></thead><tbody><tr><td><a href="/pages/olSOH1iC6EhBt7Ai955E#wrap.iswrap">isWrap()</a></td><td>The method checks if the value of any type is the <a href="/pages/vlRmumtdkPHxEUrU51WO"><code>Wrap</code></a> instance of any or given opening and closing.</td></tr><tr><td><a href="/pages/olSOH1iC6EhBt7Ai955E#wrap.template">template()</a></td><td>The static "tag" method builds the wrap of a <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html#string"><code>string</code></a> type on the template. With the added string before the expressions, it returns a wrapped string.</td></tr></tbody></table>

### Instance methods

| Wrap.prototype.                                                                                                    | Description                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [getClosing()](https://docs.angular-package.dev/text/wrapper/pages/E9uLxaEidkQjHyUHksag#wrap.prototype.getclosing) | Gets the [closing](/text/wrapper/basic-concepts.md#closing) of the wrap by returning the [`#closing`](/text/wrapper/wrap/instance-properties.md#closing) property of the specified object.        |
| [getOpening()](https://docs.angular-package.dev/text/wrapper/pages/E9uLxaEidkQjHyUHksag#wrap.prototype.getopening) | Gets the [opening](/text/wrapper/basic-concepts.md#opening) of the wrap by returning the [`#opening`](/text/wrapper/wrap/instance-properties.md#opening) property of the specified object.        |
| [getWrap()](https://docs.angular-package.dev/text/wrapper/pages/E9uLxaEidkQjHyUHksag#wrap.prototype.getwrap)       | Gets the [wrap](/text/wrapper/basic-concepts.md#wrap), primitive value consists of the [opening](/text/wrapper/basic-concepts.md#opening) and [closing](/text/wrapper/basic-concepts.md#closing). |
| [valueOf()](https://docs.angular-package.dev/text/wrapper/pages/E9uLxaEidkQjHyUHksag#wrap.prototype.valueof)       | Returns the [wrap](/text/wrapper/basic-concepts.md#wrap), primitive value of the specified [`Wrap`](/text/wrapper/wrap.md) object.                                                                |
