Encountering a property name error even though it has been defined
Uncaught (in promise): TypeError: Cannot read property 'nome' of undefined
export class HomePage {
inscricao = "São Bernardo";
nome = "abc";
nomeInvalido;
constructor() {}
}
console.log(this.nome);