Your problem occurs because you are working with asynchronous data. When your application starts, its% variable with% is undefined, and will only receive the value when the observable returned by criterias
is complete.
So your view will try to access an attribute that does not yet exist.
If you have the newer versions of ionic, an alternative would be to transform your .getCustomerCritira()
variable into 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>
:)