I need to hide fields using Angular JS
, after clicking a button will appear the label
below:
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script><bodyng-app="">
<div>
<input type="button" ng-model="btnArea" ng-init="btnArea = true" value="Áreas">
<input type="button" ng-model="btnPonto" ng-init="btnPonto = true" value="Pontos">
</div>
<div ng-if="btnArea">
<h1>Áreas</h1>
<p>Welcome to my Áreas.</p>
<hr>
</div>
<div ng-if="btnPonto">
<h1>Pontos</h1>
<p>Welcome to my Pontos.</p>
<hr>
</div>
Link: JSEddle