chore(docs): update autocomplete-filter-example.ts (#8167)

This commit is contained in:
Andrew Scott
2017-11-06 14:16:11 -08:00
committed by Joey Perrott
parent 0c257705a3
commit 2667c017cd
@@ -26,8 +26,8 @@ export class AutocompleteFilterExample {
ngOnInit() {
this.filteredOptions = this.myControl.valueChanges
.startWith(null)
.map(val => val ? this.filter(val) : this.options.slice());
.startWith('')
.map(val => this.filter(val));
}
filter(val: string): string[] {