Reputation: 9738
I have an ng-form="step1"
which is populated with data from db.
When the user changes some thing in the input boxes or selects a different radio btn, I want to display a Update Button
.
This button will be hidden at first.
How to do this?
Thanks for Help
Upvotes: 0
Views: 85
Reputation: 782
use $dirty function of angularjs
example
<input type="button" class="btn btn-primary" value="update" ng-show="changedetect.$dirty" />
Upvotes: 1