I am learning Angular. I am studying the angular.io/tutorial Tour of Heroes at https://stackblitz.com/angular/akkkxgnylgd. In app/hero.service.ts
, there is this code:
@Injectable()
export class HeroService {
private heroesUrl = 'api/heroes'; // URL to web api
constructor(
private http: HttpClient,
private messageService: MessageService) { }
/** GET heroes from the server */
getHeroes (): Observable<Hero[]> {
return this.http.get<Hero[]>(this.heroesUrl)
.pipe(
tap(heroes => this.log(`fetched heroes`)),
catchError(this.handleError('getHeroes', []))
);
}
I was trying to investigate the call to /api/heroes
. I turned on Chrome Developer Tools but could find no trace of any http calls to /api/heroes
. How can I see the invocation of this URL?