Ember: How to keep a promise after this.send ()

How do I do something like:

this.send('someFunction').then(function(response) { // do something with the response data }); 

In this case, "someFunction" is an action from mixin.

+7
source share
1 answer

send does not return anything, but you can send a pending / promise to it and expect the action to solve it.

I will find an example that I gave a few weeks ago and put it here.

Return promise from controller action in Ember?

+3
source share

All Articles