I have glyphicon-eye for all fields in the form. If user click on glyphicon-eye-open then it will change to glyphicon-eye-close and I push that specific field name into an array
You can use ng-class like below.
{{x.name}}
function myCtrl($scope) { $scope.allow=[{ 'fname':1, 'name':'Anil' },{ 'fname':0, 'name':'Sunil' },{ 'fname':1, 'name':'Manil' }] }