属性"登录"在类型"AngularFireAuth"离子上不存在



iam尝试使用ionic中的firebase创建登录页面。方法。请帮助!

login.ts

import { Component } from '@angular/core';
import { NavController, NavParams, AlertController, LoadingController, Loading, IonicPage } from 'ionic-angular';
import { AngularFireAuthModule } from 'angularfire2/auth';
import { AngularFireAuth } from 'angularfire2/auth';

@Component({
  selector:'page-login',
  templateUrl:'login.html'
})
export class LoginPage{
  email: any;
  password: any;
  constructor(public NavCtrl: NavController,public NavParams,public angfire: AngularFireAuth){
  }
ionViewDidLoad(){
  console.log('ionViewDidload LoginPage');
}
login(){
  this.angfire.login({
    email:this.angfire,
    password:this.password
  },
  })
}
  }

for angularfire2尝试此

signInWithFacebook() { this.afAuth.auth.signInWithPopup(new firebase.auth.FacebookAuthProvider()) .then(res => console.log(res)); }

相关内容

  • 没有找到相关文章

最新更新