Thank you for your reply.
Regards

On Thursday, 24 January 2019 22:52:47 UTC-5, Sander Elias wrote:
>
> Hi Muhammad,
>
> That is way too much code to be able to read in a message. Put things like 
> this in something like stackblitz before you ask questions, please.
> Just from your question, you should store your promise, and use it inside 
> your event handler.
>
> const someReq = http$(....).then(data => extractWhatINeed(data))
> blabla.on('someEvent', (ev) => {
>     someReq.then(data => { console.log(ev,data), /** do whatever you want 
> here */})
> }
>
> Hope this answers your question.
> Regards
> Sander
> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to