Added message for no result when searching
[u/erikhf/frm.git] / src / components / search / livesearch.ts
index 390a903..e514449 100644 (file)
@@ -26,7 +26,7 @@ export class LiveSearch {
         console.log("starting");
         (<any>Rx).Observable.fromEvent(this.el.nativeElement, 'keyup')
             .map(e => e.target.value)
-            .filter(text => text.length > 2)
+            .filter(text => text.length > 0)
             .debounceTime(250)
             .distinctUntilChanged()
             .do(zone.bind(() => this.loading.next(true)))