@niconel wrote:
I guess I got this all wrong. the alert in the code below never fires
(for what it matter, I'm deleting an "identifier" which belong to a "deal" and even though the call hit my api, and delete the record, it still show in my template..hence me trying to get some return function working so that I can reload the parent [deal])/*var deal = this.modelFor('deals/show'); identifier.destroyRecord().then(() => { alert("this never fire....."); deal.reload(); });*/ identifier.destroyRecord().then(function () { alert("this never fire....."); });
Posts: 1
Participants: 1