Cannot read property of name undefined


#1

<ion-input type=“text” placeholder=“Email” name=“name” [(ngModel)]=“registerCredentials.name” required>


#2

Make sure to initialize it as an empty object in your component.

constructor(){
this.registerCredentials = {
  name: “”
  }
 }

Posting some of your actual code, an explanation with more than zero details, and maybe a ‘thanks in advance’ or something is helpful also (as in people will be more willing to offer advice, making it more likely you’ll receive the help you seek)

I’m guessing this fixes the problem for you though. Must initialize to something in constructor or the HTML template has no idea as to what it’s supposed to be displaying.