I have a json Object which looks something like this
{
"entityType": "ABC",
"entityId": "1234",
"transactionId": "fdsfs1234",
"modifiedDate": 1460778320876,
"modifiedBy": "pratik",
"modifyingService": "XYZ",
"modifyingAPI": "update"
}
Using this json i create list of divs using ng-repeat. Here is the code:
<div class="" layout="row" ng-repeat="(key, value) in Detail">
<div layout="row" class="tableDiv">
<div class="fixTdDivKey" ng-if="shouldDisplayKey(key)">
<label>{{key}}</label>
</div>
<div class="fixTdDivValue" ng-if="shouldDisplayValue(key)">
<div class="preDiv">{{value}}</div>
</div>
</div>
</div>
Now When this is loaded I want to hide some of the divs based on the key name and then all these divs should be displayed when I click a button say (Show Basic) and again should get hidden when I click a button say (Hide Basic)
Could some one please point me to right direction?
Thanks