Skip to content

Instantly share code, notes, and snippets.

@shivanibhanwal
Last active August 29, 2015 14:09
Show Gist options
  • Save shivanibhanwal/46603ad0c7d8bfa16609 to your computer and use it in GitHub Desktop.
Save shivanibhanwal/46603ad0c7d8bfa16609 to your computer and use it in GitHub Desktop.
Hi @ wycats,
I am using emberjs 1.8.0 release and I am trying to build a dynamic view. As per various reference and suggestions on the web.
I planned to use ContainerView and ChildViews as I have to dynamically add a single row of the grid, whenever someone click ADD button
on my main view.
Using this reference I am able to add the childViews in the containerView. However I am facing issue with data retrival.
I am not able to get data in my controller, which i have entered in the each child view. I think because
controller and ContainerView has not direct relation.
Here is the JSBin of what I am doing http://emberjs.jsbin.com/gatoja/8/
I want to get value of all the dynamically added WIDTH fields
I have referred these links but most of these talk about adding the childView none of these explain how to get the data
http://stackoverflow.com/questions/9650322/how-do-i-add-child-views-to-a-containerview/26906968#26906968
http://stackoverflow.com/questions/13818655/how-to-get-data-for-childviews-from-different-ajax-request-of-a-containerview/26906594#26906594
https://github.com/emberjs/ember.js/issues/2108
http://emberjs.jsbin.com/ItiMeqOq/5/edit?html,css,js,output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment