I have a custom validation directive that I had attributed to the form
<form myValidations>
app.directive('myValidations', function(){
return{
//require: 'ngModel', note its commented out
link: function(s,e,a,ctrl){//note the emphasis on the ctrl
}
}
});
now how would I grip this ctrl.$parsers if I don't have the 'require: ngModel' to do it for me.
could i find an element and then call its ng-model in some function to return an ng-model-controller? so that I can #$parsers from there?