the z-validate directive has the line
isInput ? linkForInput() : linkForNonInput();
with the linkForNonInput function simply adding z_error, z_invalid etc. properties to the scope.
Many custom angular directives (many examples, but calendars, autocompletes and multi select directives) will be encapsulated by a div. in these cases, making the div behave like the other input elements (i.e. calling the linkForInput function) would seem to make more sense. Could this be implemented or are there other ways the linkForNonInput directive should be used? Thank you