# Refresh bindings

**URL:** <https://discourse.aurelia.io/t/refresh-bindings/1172>\
**Category:** Uncategorized\
**Created:** [April 30, 2018, 11:12am UTC](https://discourse.aurelia.io/t/refresh-bindings/1172 "2018-04-30T11:12:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordon-matt](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/gordon-matt/32/752_2.png) [@gordon-matt](https://discourse.aurelia.io/u/gordon-matt)\
**Post date:** [April 30, 2018, 11:12am UTC](https://discourse.aurelia.io/t/refresh-bindings/1172/1 "2018-04-30T11:12:30Z")

</div>

Can someone tell me how to force Aurelia to refresh bindings? When using Durandal/Knockout, I did this:

```auto
var body = this.element.find("tbody")[0];
if (body) {
    ko.cleanNode(body);
    ko.applyBindings(ko.dataFor(body), body);
}

```

What is the equivalent in Aurelia?

More details on my case here: [https://stackoverflow.com/questions/50022746/how-to-refresh-bindings](https://stackoverflow.com/questions/50022746/how-to-refresh-bindings)

---

<div class="post-metadata">

**Author:** ![gordon-matt](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/gordon-matt/32/752_2.png) [@gordon-matt](https://discourse.aurelia.io/u/gordon-matt)\
**Post date:** [May 1, 2018, 4:52am UTC](https://discourse.aurelia.io/t/refresh-bindings/1172/2 "2018-05-01T04:52:03Z")

</div>

Problem was solved using `TemplatingEngine.enhance` as follows:

`import { TemplatingEngine } from 'aurelia-templating';`

**Inject an instance of TemplatingEngine:**  
`@inject(TemplatingEngine)`

**Constructor:**

```auto
constructor(templatingEngine) {
    this.templatingEngine = templatingEngine;
}

```

**Main Code:**

```auto
let self = this;
// etc...

var body = $('#grid').find('tbody')[0];
if (body) {
    self.templatingEngine.enhance({ element: body, bindingContext: self });
}

```

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [May 3, 2018, 12:34pm UTC](https://discourse.aurelia.io/t/refresh-bindings/1172/3 "2018-05-03T12:34:27Z")

</div>

You could also you `signal` behavior
