Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Field level validate on empty not working #160

Description

@mandarranade

as per
https://github.com/ghiscoding/angular-validation/wiki/Inputs-(local-options)#validate-on-empty
we should be able to set validate on empty via code for a particular field. Unfortunately this option is not working. I'm afraid the issue is happening in the ValidationService inside addValidator function. From my analysis I feel problem is at
https://github.com/ghiscoding/angular-validation/blob/master/src/validation-service.js#L101 . we should be accessing attributes from attrs instead of self.validationAttrs . If attrs are not available then we should try to access self.validationsAttrs . (if element level validations not specified try getting value from global level validationsAttrs )
Can you please look into the same?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions