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

Était-ce utile?

La solution

use $dirty function of angularjs

example

<input type="button" class="btn btn-primary" value="update" ng-show="changedetect.$dirty" />
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top