docs(aio): correct typos in Tour of Heroes `HeroSearchService`
This commit is contained in:
parent
1a947e4b75
commit
400486ced7
|
@ -14,7 +14,7 @@ export class HeroSearchService {
|
|||
|
||||
search(term: string): Observable<Hero[]> {
|
||||
return this.http
|
||||
.get(`app/heroes/?name=${term}`)
|
||||
.get(`api/heroes/?name=${term}`)
|
||||
.map(response => response.json().data as Hero[]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ export class HeroSearchService {
|
|||
|
||||
search(term: string): Observable<Hero[]> {
|
||||
return this.http
|
||||
.get(`app/heroes/?name=${term}`)
|
||||
.get(`api/heroes/?name=${term}`)
|
||||
.map(response => response.json().data as Hero[]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue