Error when trying to create log in/register page



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’;

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){
const result =await this.afAuth.auth.createUserWithEmailAndPassword(

Here is what I use in the signup.html

Email ] [(ngModel)] =""> 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.