خرید بک لینک

Vote count: 0

I have a form that is tabbed with multiple nested ng-forms. I have some logic that shows an asterisk on the tab if that tab's form has required fields. I'm using form.$dirty to check these.

An issue I have on the form is if someone goes into a tab, populates a feild, then changes their mind and clears out the field that section is still required.

Is there a way to have the form set back to pristine if the user clears out their inputs and manually puts the form back to being pristine? I'd prefer to avoid having a "reset" button or something similar.

asked 56 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 17 ارديبهشت 1395 ساعت: 11:22

صفحه بندی