docs(toh-6): remove throw

closes #1930
This commit is contained in:
Torgeir Helgevold 2016-07-19 19:15:23 -04:00 committed by Ward Bell
parent b4c92d9c9c
commit 0387b810c6
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import { Hero } from './hero';
})
export class HeroSearchComponent implements OnInit {
// #docregion search
heroes: Observable<Hero>;
heroes: Observable<Hero[]>;
// #enddocregion search
// #docregion searchSubject
searchSubject = new Subject<string>();
@ -45,7 +45,7 @@ export class HeroSearchComponent implements OnInit {
.catch(error => {
// Todo: real error handling
console.log(error);
return Observable.throw(error);
return Observable.of<Hero[]>([]);
});
}
// #enddocregion search