1
我有简单的GET
请求,这会带来一些数据显示。是否可以在Angular 2中从JS创建HTML项目?
this.apiRequest.get(url)
.map(response => response.json())
.subscribe(response => {
this.notes = response.notes
loader.dismiss()
}, err => {
loader.dismiss()
})
那么我告诉它:
<ion-item *ngFor="let note of notes" text-wrap>
<!-- data -->
</ion-item>
的主要问题是,当有大量的notes
装载机驳回显示所有项目之前。
我需要JS循环ngFor
然后隐藏装载机或HTML
某种程度上禁用加载...