canjs / can-stache-bindings

Binding helpers for CanJS template engines
https://canjs.com/doc/can-stache-bindings.html
MIT License
8 stars 8 forks source link

Handle two way binding with nested properties #521

Closed Mattchewone closed 5 years ago

Mattchewone commented 5 years ago

Handle nested props with two way binding:

<script id="app-template" type="text/stache">
  <home-page textData.textValue:bind="textString" />
  <input value:bind="textString"/>
</script>

<script id="home-template" type="text/stache">
  <h1>Home Page</h1>
  <input value:bind="textData.textValue" />
</script>

Resolves - https://github.com/canjs/can-stache/issues/408