I've spent about 2 hours now trying to figure out what the issue is, but alas it's taking too long for what should be a tutorial. I've come to the step of "Get heroes with HttpClient" in the "6. Get Data from a Server" chapter of the official Angular tutorial. The code simply keeps on telling me "Http failure response for http://localhost:4200/api/albums:" (I've replaced "hero" with "album" in my code). Does anyone know what's the issue? Here's my code.
I've tried adding apiBase: 'api/'
into
HttpClientInMemoryWebApiModule.forRoot(
InMemoryDataService, { dataEncapsulation: false, apiBase: 'api/' }
)