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.
