angular - Simple search query in Angular2/4 with Firebase -
i have project in angular4, database i'm using firebase. have table of users , need search bar filters users according name. in sql like '%name%'
, don't see similar options firebase. how can make simple search bar users? thanks.
this code i'm using retrieve data database:
import { angularfiredatabase, firebaselistobservable, firebaseobjectobservable } 'angularfire2/database'; export class usercomponent implements oninit { constructor(public af: angularfiredatabase) { this.users = af.list('/users', { query: { limittolast: 15 orderbychild: 'name', equalto: "i don't know put here" } }); } }
Comments
Post a Comment