I have a simple ng-repeat that displays a list of names and icons:
<div ng-repeat="data in MyData">
<p>Name: {{ data.Name }}</p>
<span class="warning-sign"></span>
</div>
How can i modify this so that i display a list of all names, but icons only for the last 6 months?
I've tried:
$scope.Today= new Date();
$scope.SixMonths = new Date();
$scope.SixMonths .setDate($scope.SixMonths.getMonth() + 6);
Which i could incorporate an ng-show
on my <span>