Setting up a login page and declaring an object in my login.ts file.
public User: {
login:"",
senha:"",
};
Utilizing [ngModel] to save values within the parameters of the object.
<ion-item>
<ion-label floating>Enter your CNS or CPF</ion-label>
<ion-input type="text" [(ngModel)]="User.login"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Password</ion-label>
<ion-input type="text" [(ngModel)]="User.senha"></ion-input>
</ion-item>
Encountering an error that is preventing the page from loading.
ERROR TypeError: Cannot read property 'login'