SuperMarco
SuperMarco

Reputation: 721

Emberjs - Model being reload

My question might be a bit silly, but I would like to know what's happening when you reload the model from the controller.

For example I have an object with an array in it display in my website, and I'm updating this array by adding some new item in it.

Is the model display will be reloaded completely ? or it will just add the new data updated ?

Thanks for the answer.

Upvotes: 1

Views: 76

Answers (1)

Kingpin2k
Kingpin2k

Reputation: 47367

Assuming you are pushing/adding objects to the array, it just adds new elements to that section of the page, it doesn't re-render the entire section. You can see this by modifying a portion of the DOM from the developer tools, and seeing that it retains those changes when you add those additional items.

Upvotes: 1

Related Questions