I am working with a list that is generated using ngRepeat, which looks like this
<ul class="list-group">
<li class="list-group-item" ng-repeat="data in tree | filter:key">
{{data.name}}
</li>
</ul>
My goal is to make the first item in the list have rounded corners. I have defined a style as shown below
.first-item {
border-top-left-radius: 15px;
border-top-right-radius: 15px;
}
How can I apply this style to only the first visible item? Keep in mind that the visibility of the first item may change dynamically based on the search input connected to the key
.