Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

can.Model.List: Should it automatically update when model created/updated

$
0
0
Hello

Sorry if this is stupid but I see uses for model.list as:

  • They are returned by findAll.
  • They automatically remove "destroyed" items.
  • They can retrieve items from the server (similar to findAll).
What I assumed was:
  • They are returned by findAll.
  • They automatically remove "destroyed" items.
  • They automatically add "created" items
  • They automatically update "updated" items
  • They can retrieve items from the server (similar to findAll).


Is this correct or do we handle the highlighted items manually?

Example: Right now I listen to a "create" event and push() the new model into the list. The use case being a master/detail scenario with lists of records next to a form.

PS I cant tell you how much I love your product...Thank you


Viewing all articles
Browse latest Browse all 3491

Trending Articles