Home getting the name of the form tag from an HTML element within a directive
 I'm getting the ngModel name, but I also want to get the name of the form to which the element with the "validacion" directive belongs. I strictly need to get the name of the form to which the HTML element belongs. I can have several forms so I need a dynamic solution. thank you very much .directive('validacion', function ($timeout,$rootScope,validacionCampos,\$compile) { return { restrict: 'AE', require: 'ngModel', link: function (scope, element, attrs, ngModel) { if (!ngModel){ console.log("no hay modal") return; }