Can not read property name

  Generated template for the LoginPage page.

  See for more info on
  Ionic pages and navigation.



<ion-content padding>
  <form (ngSubmit)="login()" #registerForm="ngForm">
        <ion-list inset>
            <ion-input type="text" placeholder="Email" name="name" [(ngModel)]="" required></ion-input>
            <ion-input type="password" placeholder="Password" name="password" [(ngModel)]=""required></ion-input>
      <ion-col class="signup-col">
        <button ion-button class="submit-btn" full type="submit" >Login</button>

may be this cause error


try another name for input

You have the same ngModel in email and password

i tried but throwing same error

remove name attribute

you have ngmodel attribute so you can use that variable to get name attribute become meaningless