Hi Kyle,
the curl command is
C:\Temp\curl>curl http://centos64:8080/heroes
[{"id":1,"city":"Metropolis","flight":true,"invulnerable":false,"name":"Mr.
Nice","strength":false},{"id":2,"city":"Reading","flight":false,"invulnerable":false,"na
etc etc etc
And this is the original code from the heroes tutorial
getHeroes(): Promise<Hero[]> {
return this.http.get(this.heroesUrl)
.toPromise()
.then(response => response.json().data as Hero[])
.catch(this.handleError);
}
As you can see I really did not change this.
Regards,
John
--
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.