Using the *ng-repeat* you have access to some variables created by this
directive. Maybe these variables can help you.
Have a look at the docs:
https://code.angularjs.org/1.3.17/docs/api/ng/directive/ngRepeat
Using the *$index* or the *$first* variables you can hide (don't add it to
the DOM) all the paragraphs that you don't want to show.
Try this:
<a class="item" ng-click="browse(entry.link)" ng-if="!!$first">
<h2>{{entry.title}}</h2>
<p>{{entry.publishedDate}}</p>
</a>
Use this approach if you want to hide other elements.
Regards,
*Luís Loureiro*
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.