Francis:
I’m trying to push a new object to app model by doing this:
app.push({
new: true
})
and not working.
Delfs:
I think you want
app.myArray.push(. )
Francis:
I tried app.env.push() and won’t work. This is from within a modal.
Christina Saran:
does the env
key exist?
you can also do app.env = {key: "value"}
this will overwrite the previous value.
Francis:
That did it! Env
key does not exist and only created after a hook. Thanks Christina!
Christina Saran:
great!