Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Problem with setConstraintUrl and custom validation #85

Open
imamovic opened this issue Jun 16, 2015 · 2 comments
Open

Problem with setConstraintUrl and custom validation #85

imamovic opened this issue Jun 16, 2015 · 2 comments

Comments

@imamovic
Copy link

If json with validation is loaded from server you can not setup custom validation for same valdr-type.
Custom validation is deleted with validation from server.

Problem is with this:

var addConstraints = function (newConstraints) {
      angular.extend(constraints, newConstraints);
 };

Need to be user angular.merge();

@marcelstoer
Copy link
Collaborator

Why do you have tighter validation on the client than on the server (I understand that's what you're doing)? It should be the other way around.

@imamovic
Copy link
Author

Not exactly, there is and validation on server but it is not been validation, it is custom validation (because of step when data are validated)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants