---
id: fast-element.controller.onattributechangedcallback
title: Controller.onAttributeChangedCallback() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [Controller](./fast-element.controller.md) &gt; [onAttributeChangedCallback](./fast-element.controller.onattributechangedcallback.md)

## Controller.onAttributeChangedCallback() method

Runs the attribute changed callback for the associated element.

<b>Signature:</b>

```typescript
onAttributeChangedCallback(name: string, oldValue: string, newValue: string): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  name | string | The name of the attribute that changed. |
|  oldValue | string | The previous value of the attribute. |
|  newValue | string | The new value of the attribute. |

<b>Returns:</b>

void
