I'm following the famous Angular tutorial, Tour of Heroes, but I'm struggling with one step.
On the sixth course, HTTP, we are using a tool made to mimick API calls to an API.
I think I followed all the steps, up to this point where it is stated the folliwing :
Refresh the browser. The hero data should successfully load from the mock server.
But I may have missed something : the http calls all give http 500 headers with the error being Object(...) is not a function
.
Have I missed something about creating a route ? It seems odd to me that inMemory wep API does not seem to need a route.
My test code is available here : https://github.com/MarcBrillault/tourOfHeroes/tree/StackOverflow