When user click ng-click i need to remove filters and title attributes in a link .
Again user click ng-click i need to add filters and title attributes in a link.
HTMl :
<div ng-app="myApp" ng-controller="myCtrl" ng-init="names=['Jani','Hege','Kai']">
<p ng-click="toggleFilter()">Toggle Filters</p>
<ul>
<li ng-repeat="x in names">
<a href="#" title="{{x}}">{{ x | limitTo: 2 }} {{x.length < 2 ? '' : '...'}} </a>
</li>
</ul>
</div>
can anyone help me resolve this
