Angular2无法识别对象中的对象

时间:2016-08-23 15:07:06

标签: javascript angular typescript

我有一个像这样的对象数组:

clusters = [
    {
        latitude: 51.521024,
        longitude: 5.134832,
        icon: '/img/map/marker-cluster-jungalow.png',
        draggable: true,
        clusterAvailibilty: {
            latitude: 51.521424544801285,
            longitude: 5.133759116394003
        }
    },
    {
        latitude: 51.52444186907029,
        longitude: 5.137406920654257,
        icon: '/img/map/marker-cluster-jungalow.png',
        draggable: true,
        clusterAvailibilty: {
            latitude: 51.521424544801285,
            longitude: 5.133759116394003
        }
    }
]

现在我想循环使用clusters.clusterAvailibilty,如下所示:

<sebm-google-map-overlay-view 
  *ngFor="let available of clusters.clusterAvailibilty"
  [latitude]="available.latitude" [longitude]="available.longitude" 
  [objectId]="kind.count"
  [class]="'availability'">
</sebm-google-map-overlay-view>

但它没有显示任何人可以帮助我这个&gt;

0 个答案:

没有答案