projects
/
examples
/
angular-tour-of-heroes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6: Get Data from a Server
[examples/angular-tour-of-heroes]
/
src
/
app
/
hero.service.ts
diff --git
a/src/app/hero.service.ts
b/src/app/hero.service.ts
index
a0b5d5b
..
75a002b
100644
(file)
--- a/
src/app/hero.service.ts
+++ b/
src/app/hero.service.ts
@@
-12,7
+12,7
@@
import { catchError, tap } from 'rxjs/operators';
})
export class HeroService {
})
export class HeroService {
-
private
heroesUrl = 'api/heroes'; // URL to web api
+ heroesUrl = 'api/heroes'; // URL to web api
constructor(
private http: HttpClient,
constructor(
private http: HttpClient,