0
Webサービスからデータを取得していますが、HTMLページでこのデータをレンダリングします。 テンプレート解析エラー - > 'ion-item'の既知のプロパティではないため 'ngforOf'にバインドできません
<ion-list>
<ion-item *ngfor="let item of items">
{{item.Problem}}
</ion-item>
</ion-list>
が、それは、これを返します:私は、データをループし
*ngfor
を使用
Uncaught Error: Template parse errors:
Can't bind to 'ngforOf' since it isn't a known property of 'ion-item'.
1. If 'ion-item' is an Angular component and it has 'ngforOf' input, then verify that it is part of this module.
2. If 'ion-item' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
<ion-list>
<ion-item [ERROR ->]*ngfor="let item of items">
{{item.Problem}}
"): ng:///AppModule/[email protected]:18
Property binding ngforOf 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 "@NgModule.declarations". ("
<ion-list>
[ERROR ->]<ion-item *ngfor="let item of items">
{{item.Problem}}
"): ng:///AppModule/[email protected]:8
私はこの問題を解決する方法を、すでにngfor構文を確認しましたか?