在ngFor angular2中渲染组件列表

时间:2016-10-31 20:47:13

标签: angular typescript

我有一个JsonElement数组,其中包含dog cat等组件,每个组件都有自己的属性,并扩展了IAnimal接口。

现在我想从IAnimal数组中*ngFor循环中呈现所有组件,我该怎么做? 在xaml中寻找像IAnimal这样的东西

0 个答案:

没有答案
相关问题