My table has text input fields, which should be hidden when the page load and appear when I click on them. This is what I have tried and it isn't working. But the reverse is working, i can make the field disappear when i click on it.
<div class="container-fluid">
<table id="sampleGrid" class="table">
<thead>
<tr>
<th>Fat (Z10006)</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" class="col-xs-8" name="Fat" ng-if="visible" ng-click="hidden()"></td>
</tr>
</tbody>
</table>
</div>
var sampleApp =angular.module('sampleApp',[]);
sampleApp.controller('gridController',function($scope,$http) {
$scope.visible = false;
$scope.hidden = function () {
$scope.visible = true;
};
})