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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -