6: Get Data from a Server
[examples/angular-tour-of-heroes] / src / app / hero.service.ts
index a0b5d5b..75a002b 100644 (file)
@@ -12,7 +12,7 @@ import { catchError, tap } from 'rxjs/operators';
 })
 export class HeroService {
 
-  private heroesUrl = 'api/heroes';  // URL to web api
+  heroesUrl = 'api/heroes';  // URL to web api
 
   constructor(
     private http: HttpClient,