2016-10-27 8 views
0

私はループのために呉を持っており、内部のすべてのユーザーの写真をつかむために、別の内部ngForループを必要とするが、私のhtml内で表示されないです:既存のNgForループ内でngForを行う方法は?

<sebm-google-map-marker *ngFor="let m of markers; let i = index" 
    [latitude]="m.latitude" [iconUrl]="'app/images/' + m.sport + '.png'" 
    [longitude]="m.longitude" [visible]="m.options.visible" id="i"> 

    <sebm-google-map-info-window> 
    <strong><h5>{{m.title}} - {{m.date}}</h5> 
    <p>Going: {{m.going}}, Maybe Going: {{m.maybeGoing}}, 
     Address: {{m.address}}, Group: {{m.title}}</p></strong> 
    <span class="image-info-window"> 
     <img *ngFor=' let b of m.group.group_photo;' src='b.thumb_link'> 
     <p>does it work?</p> 
    </span> 
    </sebm-google-map-info-window> 

</sebm-google-map-marker> 

正しく内の1回の使用ngForはどのように?残りのhtmlは上に表示されます

答えて

3

srcは、リテラルに設定されています。このようにバインドしてください:

<img *ngFor='let b of m.group.group_photo;' [src]='b.thumb_link'> 
+0

ありがとう! – deek

関連する問題