Your problem is due to you being working with asynchronous data. When your application starts, its variable criterias
is undefined, and will only receive value when the observable returned by .getCustomerCritira()
be complete.
So your view will try to access an attribute that doesn’t exist yet.
If you are with the newer versions of Ionic, an alternative would be to transform your variable criterias
in a data stream.
Your . ts would look something like this:
export class FormAuditoria {
/* seu codigo */
criteriasObservable: Observable<AuditCustomerCriterionInterface>;
constructor() {
this.criteriasObservable = this.auditCustomerCriterionProvider
.getCustomerCriteria(this.cucr_crit_id, this.audi_id);
}
}
Your view:
<ion-card *ngIf="criteriasObservable | async as criterias">
<ion-card-content>
{{ criterias.aucc_id }}
</ion-card-content>
</ion-card>
:)
Please edit your question and add the code inves de prints.
– Eduardo Vargas
https://pt.meta.stackoverflow.com/questions/5483/manual-de-como-n%C3%83o-fazer-perguntas/5485#5485
– Eduardo Vargas