Q) Can anyone explain how to achieve this with a clear example?
I've done the Angular2 with TypeScript tutorial here:
https://angular.io/docs/js/latest/quickstart.html
I want to replace the mock-heroes.ts
and get the hero.service.ts
to fetch real http data. E.g. from here:
http://jsonplaceholder.typicode.com/users
But Google haven't written the next part of the tutorial.
Help would be greatly appreciated!