Good morning, i have a field, when it is viewed it is a label, when it is modified it is an input field, i trigger this with ng-show and ng-hide and a button that enables a boolean value. When i activate the editing mode the label hides and the input field shows, it is in realtime, when i click cancel and switch the boolean, the label appears but the input field takes some time to hide, so i have a very bad visual effect. here some code
<input ng-model="name" ng-show="editing">
<label ng-hide="editing">{{name}}</label>
<button ng-click="editing=true">Edit</button>
<button ng-click="editing=false">Cancel</button>
is there a way to fix this issue?
Thank you