Tutorial by Examples: angularfire

app.ts import {Component} from '@angular/core'; import {Platform, ionicBootstrap} from 'ionic-angular'; import {StatusBar} from 'ionic-native'; import {LoginPage} from './pages/login/login'; import {FIREBASE_PROVIDERS, defaultFirebase, AuthMethods, AuthProviders, firebaseAuthConfig} from 'angul...
First of all you need to initialize the angularfire modules in your app module like this: const firebaseConfig = { apiKey: 'XXXXXXXXXX', authDomain: 'XXXXXXXXXX', databaseURL: 'XXXXXXXXXX', storageBucket: 'XXXXXXXXXX', messagingSenderId: 'XXXXXXXXXX' }; You can get this keys by...
Once you have it on your app, just import it: import { AngularFireDatabase } from 'angularfire2/database'; constructor (private _af: AngularFireDatabase) {} With this Observable List you can access to a list of items under a path, for example if you have root/items/food you can get food items l...

Page 1 of 1