How do I trigger a validation of angular-input-masks?

0

I have a field:

<input type="text" name="DataNascimento" class="form-control data"
    ng-model="EscolherCurso.DataNascimento" required ui-date-mask/>

I preferred to use jquery's datepicker. But when jQuery fills in the value, the angle does not perform the validation again.

I tried to use the datepicker event:

onSelect: function (dateText) {
        $(this).val(dateText);
            if ($(this).valid()) {
                $(this).removeClass('invalid').addClass('success');
            }

    }

But it did not blow.

    
asked by anonymous 05.08.2016 / 14:33

0 answers