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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -