> For the complete documentation index, see [llms.txt](https://tag.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://tag.angular-package.dev/attribute/instance/methods.md).

# Methods

## Public

|                                                       |                                                                                                                                                      |
| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| [toArray()](/attribute/instance/methods/toarray.md)   | Returns attribute primitive value converted to the `array` where the first element is the name, and the second is the value.                         |
| [toObject()](/attribute/instance/methods/toobject.md) | Returns attribute primitive value converted to the `object` where the property key is the attribute name, and property value is the attribute value. |
| [toString()](/attribute/instance/methods/tostring.md) | Returns attribute, the primitive value of a specified [`Attribute`](/attribute/attribute.md) object.                                                 |
| [valueOf()](/attribute/instance/methods/valueof.md)   | Returns attribute, the primitive value of a specified [`Attribute`](/attribute/attribute.md) object.                                                 |
