Thanks Sander!  I'm new to Promises.  Sounds like the return value of a 
Promise can only be accessed once.  Then it gets reset.  Am I understanding 
this correctly?

On Monday, November 7, 2016 at 8:58:34 AM UTC-7, Sander Elias wrote:
>
> Random512, 
>
> if your data is in the extractData property of your results the line 
> .then(this.extractData) is NOT optional.
>
> also, this line will replace the result with a null value:
> .then(console.log(this.users))
>
> if you use the result of getUsers()  promise somewhere else in your 
> program. The console.log returns null, with the then function will use 
> after that.
>
> Regards
> Sander
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" 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