JoinedArrayはいくつかの値を持つ配列です。 event.listDetails.accessIdが配列内に存在するかどうかをチェックする必要があります。 accessIdが配列に存在しない場合、イベントカードは印刷されませすべきAngulsrjs2とIonic 2でngForとngIfを使用した受信エラー
<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