I have an array of links:
$scope.links = [{
URL: ''
}];
Then I show those links in the view using data-ng-repeat.
How can I do so that when the user click's any of the links under it will show a textbox? If clicked again the textbox will disappear?
So if the html is:
<div data-ng-repeat="link in links">
<p>
<a data-ng-href="{{link.URL}}">{{link.URl}}</a>
<p>
// when link above is clicked, insert here textbox
</div>