Encountering a strange dilemma with <img>
s within Angular Material's <md-card>
:
- Multiple
md-cards
are being generated usingng-repeat
- Data is sourced from Google Firebase: Link
- Only the second card displays the image: Link
- View it live here: dev.oster-holzhaus.de/#/holzbau (Unable to add more than two links currently)
Snippet of my code:
<md-content class='md-padding' layout="row" layout-wrap layout-align="center">
<md-card style="width: 400px;" ng-repeat="service in services">
<img ng-src={{service.imagepath}} class="md-card-image">
<md-card-title>
<md-card-title-text>
<span class="md-headline">{{service.title}}</span>
<span class="md-subhead">{{service.subhead}}.</span>
</md-card-title-text>
</md-card-title>
<md-card-content>
<p>{{service.text}}</p>
</md-card-content>
<md-card-actions layout="row" layout-align="end center">
<md-button>Test</md-button>
</md-card-actions>
</md-card>
</md-content>
- The issue lies in
line 3
. - Data retrieval is accurate, only problem is image displaying on just one card.
- Switched to a local
imagePath
, same anomaly persists
Seeking advice or solutions from those facing similar difficulties. Thank you!
Best regards, Enzo