Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angularfire and FirebaseListObservable has no exported member angularfire2 using ionic 2 app

FirebaseListObservable and Angularfire has no exported member "angularfire2" when i am creating Ionic 2 app import both files in home.ts

My Cordova and ionic version is Cordova version 6.5.0 Ionic Version 2.2.3 Node version 6.10.2 typings version 2.1.1 typescript version 2.3.2

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import {AngularFire, FirebaseListObservable} from 'angularfire2';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController, af:AngularFire ) {
}
}
like image 604
Aqib Ibrahim Avatar asked May 05 '17 07:05

Aqib Ibrahim


1 Answers

FirebaseListObservable has been changed into AngularFireList.

simply use this to import

import { AngularFireList } from 'angularfire2/database';

Check migration doc here

like image 176
Nimezzz Avatar answered Nov 09 '22 01:11

Nimezzz