in FF in input='number' angular validation fired first when enter letters and i am getting empty message.
temp solution
angular.module(app_name).factory('numberOnlyValidator', function () {
return {
name: 'numberOnly', // this is the validator name that can be referenced from the constraints JSON
validate: function (value) {
// value: the value to validate
// arguments: the validator arguments
return /^[1-9]\d*(\.\d+)?$/.test(value);
}
};
});
in FF in input='number' angular validation fired first when enter letters and i am getting empty message. temp solution