Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49103

Url api JSON object equal to firebase

$
0
0

@hatrek wrote:

hello i try call object from api json and if equal to firebase json display

ionViewWillEnter(){
    this.http.get( this.url )
    .map(res => res.json())
    .subscribe(data => {
      this.items = [];
      // we've got back the raw data, now generate the core schedule data
      // and save the data for later reference
     //this.data = data;
      this.items.push(data);


    });
    this.postSubscription = this.db.list('/posts',{
    query: {
      orderByChild: 'country',
      equalTo: this.items

    }

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>