i need to hide the inputfields of editing until the button edit is clicked then i want to show the input fields. it has to toggle on click to show the inputfield.
I also wanted to change text of edit to close fields if the inputs are showing.
here is my code
<div class="personInfo">
<h3>name <input type="text" ng-model="user.name" ng-show="edit"></h3>
<h3>email: <input type="text" ng-model="user.email" ng-show="edit"></h3>
<h3>birthday: <input type="text" ng-model="user.birthday" ng-show="edit"></h3>
<h3>password: <input type="text" ng-model="user.password" placeholder="hidden" ng-show="edit"></h3>
<button type="submit" class="save-button">Save</button>
<button ng-click="edit">edit</button>
</div>
ps: i tried to put edit in the ng-click to show only when edit is clicked but it is not working
ng-click="edit = true"