I'm trying to hide div based on input. Its a list with a id so currently my div looks like:
<div class="animate-show" ng-hide="'hide'-{{item.Id}}">
this outputs: 'hide'-1
in the ng-hide
. I've tried removing the '' but then it does not work.
The plan is that each item gets a button, when the button is clicked it would then apply $scope.hide-1 = true;
, animating a fade out for that item.
Has anyone hidden items in a list (divs in div) based on button click? How do I go about it?