Anup
Anup

Reputation: 9738

Show a Button on ng-form change

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

Answers (1)

MaTya
MaTya

Reputation: 782

use $dirty function of angularjs

example

<input type="button" class="btn btn-primary" value="update" ng-show="changedetect.$dirty" />

Upvotes: 1

Related Questions