Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

Destroyrecord promise never fire

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles