Closed notwaldorf closed 9 years ago
lgtm. Another way to do this is to expose the validation response in a bindable property, like iron-ajax
.
I've done two small extra changes in validate()
:
updateAddons()
, so that the error message is displayed from manual validation as well (and added a test that failed spectacularly before the change). Is this still ok?
If the card is valid, its icon is displayed:
I've moved the validating code out of the validator and into the change handler, so that the fancy result (card type/icon etc.) can be used. PTAL