I tak from db a list of message sended to user.
I would show in list card the name of user and the last message and then the others:
<div class="list card">
<div class="item item-avatar"> <img src="{{replys.photo}}">
<h2>{{replys.titolo}}</h2>
<p>{{replys.inviato}} {{replys.username}}</p>
</div>
<div class="item item-body" ng-repeat="reply in replys track by $index | filter:query">
<h2>{{reply.titolo}}</h2>
<p>{{reply.messaggio}}</p>
<p align="right"><i class="ion-ios-timer-outline"></i>Inviato il {{reply.inviato}} | <i class="ion-ios-eye-outline"></i>letto il {{reply.letto}}</p>
</div>
If you understand I would show before the photo of the user, the title of the last message and the usernameā¦and the repeatall the message!
But why the first element are not showing?