Question

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

Was it helpful?

Solution

use $dirty function of angularjs

example

<input type="button" class="btn btn-primary" value="update" ng-show="changedetect.$dirty" />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top