docs(aio): correct typos in Tour of Heroes HeroSearchService
This commit is contained in:
@ -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[]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user