vendredi 22 février 2019

How to bring data to another modal and delete from existing positon in Ember

I have an object called passengerStatus: attr("string") on passengerDetails.js model. I am using passengerDetail data in guest.js model. Now I want passengerStatus: attr("string") on guest.js level and be deleted on passengerDetails level.

EXISTING CODE: Request payload:

guests: [{
     passengerDetails: {
        passengerStatus: xyz,
     }
}]

EXPECTED CODE: Request payload:

guests: [{
     passengerStatus: xyz,
     passengerDetails: {
        other objects: abc
     }
}]

How can I achieve this.




Aucun commentaire:

Enregistrer un commentaire