I'm sending some data to a Child View from the chi...
# suitecommerce
v
I'm sending some data to a Child View from the childViews object of the Parent View. When that data updates in the Parent, how do I trigger the update in the Child View too? (for it to show the updated data on the child's template) Currently I'm doing a this.render() in the Parent view (when the data updates) which 'refreshes' the parent along with the child view and forces it to use the updated data. Just want to know if there's a better way to do this.
s
I guessif you will put log on this of a backbone view,in prototype u will get all the methods of view.
There is a method named renderChildViewInsatnce,which takes a child view property and its element of parent template file.
v
ah, that's interesting! thanks for pointing it out @Sohan Kumar Dash 🙂
👍 1