An automatic validation module for AngularJS which gets rid of excess html in favour of dynamic element modification to notify the user of validation errors
First I want to thank you for this awesome module.... I having some trouble setting up custom error messages through defaultErrorMessageResolver.
I have gone through the documentation on creating customErrorMessageResolver but I was wondering if there is a simpler way.....
I am currently using Spring which already has i18 message resolver so I do not need set the culture.
Questions:
In the document, Error Message Resolver, is there a way to pass in data from a scope or a from a service??
errorMessages['myCustomError'] = 'My custom error message'; Instead of hardcoding a string would like to pass in a variable that is retrieved from the server.
This does not work because angular.module('jcs-autoValidate').run runs before the DataService is ready. I have tried passing in $qPromise but still no luck... I still get an undefined on DataService.
First I want to thank you for this awesome module.... I having some trouble setting up custom error messages through defaultErrorMessageResolver.
I have gone through the documentation on creating customErrorMessageResolver but I was wondering if there is a simpler way.....
I am currently using Spring which already has i18 message resolver so I do not need set the culture.
Questions: In the document, Error Message Resolver, is there a way to pass in data from a scope or a from a service??
errorMessages['myCustomError'] = 'My custom error message';
Instead of hardcoding a string would like to pass in a variable that is retrieved from the server.So for example....
Resource
Service that gets all the data needed for the page... something like this
This does not work because
angular.module('jcs-autoValidate').run
runs before the DataService is ready. I have tried passing in $qPromise but still no luck... I still get an undefined on DataService.Any insights is greatly appreciated.