Closed hinok closed 9 years ago
If month and year are set as strings not numbers, validation is not in sync.
Like
myCard = { year: '2019', month: '10' };
ccExpMonth.$valid and ccExpYear.$valid are equal to false. ccExp.$valid is equal to true.
false
true
Plnkr http://plnkr.co/edit/oJluKcoqpdwqufYP0D1q?p=preview
Sorry for missing this one somehow. Those aren't valid values. Inject creditcards and use its parsers directly to cast the values properly.
creditcards
If month and year are set as strings not numbers, validation is not in sync.
Like
ccExpMonth.$valid and ccExpYear.$valid are equal to
false
. ccExp.$valid is equal totrue
.Plnkr http://plnkr.co/edit/oJluKcoqpdwqufYP0D1q?p=preview