我正在做的服务是在数据库中添加用户登录的数据,但我的课程有问题
import { AngularFire } from 'angularfire2';
var adminConection=null;
export class setAdmin {
constructor(public af: AngularFire){}
setDataAdmin(admin:any){
adminConection=this.af.database.object('/admins/'+admin.uid);
adminConection.set({
uid:admin.uid,
email:admin.email,
emailVerified:admin.emailVerified,
displayName:admin.displayName,
photoURL:admin.photoURL,
type:1 //Type (admin)
}).then(_ => console.log('success'));
}
}
“无法解析setAdmin的所有参数:(?)。”