rivets.js

How to bind deeper than one level with rivets.js

杀马特。学长 韩版系。学妹 提交于 2019-11-28 23:50:15
rivets.js newbie here. I want to bind to an item that will be changing dynamically (store.ActiveItem). I tried the following approach, but although store.ActiveItem is set, store.ActiveItem.(any property) is always undefined. Is there a standard way to bind deeper than one level? <div id="editItemDialog" data-modal="store.ActiveItem < .ActiveItem"> <a data-on-click="store:ClearActiveItem" href="#">close - works</a> <div> <div> <label>name:</label><input data-value="store.ActiveItem.Name < .ActiveItem"/> </div> <div> <label>price:</label><input data-value="store.ActiveItem.Price < .ActiveItem"/