You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've read your docs a few times but I can't find the simplest example that illustrates how to modify any given model and have it updated on the server.
For example, let's say I have a Collection of Items, and I want to do this:
let item = ItemsCollection.models[0]
console.log(item.name) // Item One
item.name = 'Test'
console.log(item.name) // Test
item.update() // <-- this does nothing, no activity in the Network tab of my console, and my item is not updated via my API
I understand all the concepts very well, but nothing happens when I fire on any of the model methods.
Is there a basic tutorial or example or code sandbox somewhere that shows how to select a model, modify one of its attributes, and then update it so that it actually fires on my API endpoint?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi, I've read your docs a few times but I can't find the simplest example that illustrates how to modify any given model and have it updated on the server.
For example, let's say I have a Collection of Items, and I want to do this:
I understand all the concepts very well, but nothing happens when I fire on any of the model methods.
Is there a basic tutorial or example or code sandbox somewhere that shows how to select a model, modify one of its attributes, and then update it so that it actually fires on my API endpoint?
Thanks in advance.
The text was updated successfully, but these errors were encountered: