Error when trying to create log in/register page


#1

Hello,

I am a beginner at ionic and I am trying to create a log in and a signup page using
a firebase database. I am currently facing multiple errors I can’t get around with.

Here is the code I use in my signup.ts page:
import { Component } from ‘@angular/core’;
import { IonicPage, NavController, NavParams } from ‘ionic-angular’;
import { TabsPage } from ‘…/tabs/tabs’;
import { User } from ‘…/…/models/user’;
import {AngularFireAuth} from ‘angularfire2/auth’;
/**

@IonicPage()
@Component({
selector: ‘page-signup’,
templateUrl: ‘signup.html’,
})
export class SignupPage {
user={} as User;

constructor(private afAuth: AngularFireAuth,
public navCtrl: NavController, public navParams: NavParams) {
}

ionViewDidLoad() {
console.log(‘ionViewDidLoad SignupPage’);
}
async signup(user: User){
try{
const result =await this.afAuth.auth.createUserWithEmailAndPassword(user.email
,user.password);
console.log(result)
}
catch(e){
console.error(e);
}
}
}

Here is what I use in the signup.html

Email ] [(ngModel)] ="user.email"> Password ][(ngModel)]="user.password"> Signup I also want to mention that the [ERROR ->] was put after I got a ngmodel error stating that ion input does not recognize it.