I'm new to angular and I'm unable to find perfect solution for custom validation for angular application.
We have an input field which is attached to array(list has 2500+ options) now we want to validate for the value user typed against the array which we are unable to do, here is our simple code
var value_array = ["a",c","c"];
app.directive('validValue', function() {
return {
restrict: 'A',
require: '^form',
link: function(scope,elem,attr,formController) {
elem.bind('blur', function() {
// no idea what to do from here
}
});