Beginning Ionic for iOS and Android Development by Greg Lim

Beginning Ionic for iOS and Android Development by Greg Lim

Author:Greg Lim
Language: eng
Format: azw3
Published: 2017-07-18T07:00:00+00:00


(Note: At time of writing, the version for "angularfire2": "^4.0.0-rc.0", and "firebase": "^3.9.0")

app.module.ts

As of AngularFire2 4.0.0, we need to import AngularFireModule and also AngularFireDatabaseModule into app.module.ts (if you are using firebase version before 4.0.0, you need to import only AngularFireModule). In app.module.ts, add the lines in bold. Note that the credential properties in firebaseConfig should be your own (copied from firebase console)

import { BrowserModule } from '@angular/platform-browser';

import { ErrorHandler, NgModule } from '@angular/core';

import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';

import { SplashScreen } from '@ionic-native/splash-screen';

import { StatusBar } from '@ionic-native/status-bar';



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.