I am creating an rss ionic angular app and I need to hide the other
paragraphs in the json result of the expression. I successfully did it
using css display none but it seems the space is still being active.
Appreciate the help. still new to angular
css
.item p:not(:nth-of-type(1)) {
display:none !important;
}
index
<ion-content ng-controller="FeedController" ng-init="init()">
<div class="list">
<div ng-repeat="entry in entries" class="list card">
<a class="item" ng-click="browse(entry.link)" >
<h2>{{entry.title}}</h2>
<p>{{entry.publishedDate}}</p>
</a>
<div class="item item-body" >
<span ng-bind-html="entry.content"></span>
</div>
<div class="item tabs tabs-secondary
tabs-icon-left">
<a class="tab-item" href="#">
<i class="icon ion-chatbox" ></i>
Comment
</a>
<a class="tab-item" href="#">
<i class="icon ion-share"></i>
Share
</a>
</div>
</div>
</div>
</ion-content>
--
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.