Is there a way to dynamically access the ng-model name assigned to each div within a for loop in a function triggered by an ng-click event?
I have four divs on my page and I only want to display one at a time while hiding the others. My current approach involves using ng-show.
<div ng-show="content0">content0 details here...</div>
<div ng-show="content1">content1 details here... </div>
<div ng-show="content2">content2 details here...</div>
<div ng-show="content3">content3 details here... </div>