JoinedArray是一个包含一些值的数组。 我必须检查event.listDetails.accessId是否存在于数组中。如果ACCESSID是不存在的数组中,则此事件卡不能打印在Angulsrjs2和Ionic中使用ngFor和ngIf接收错误2
<ion-list *ngSwitchCase="'joined'">
<event-card *ngIf="event.listDetails.accessId in joinedArray " ></event-card>
</ion-list>
错误是:
EXCEPTION: Error: Uncaught (in promise): Template parse errors: Property binding ngIfIn not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "directives" section. ("e keys and i have to check if it is present in the array or not ..please suggest-->--> [ERROR ->] "): [email protected]:12