marmelab/ng-admin — pull request #137 by fzaninotto (2014-11-22 21:56:09+00:00)
Title: [RFR] field.validation(obj) merges obj with the default config

This is a workaround for #134. Now, calling `field.validation({ required: true })` doesn't nullify the `validation.maxlength` setting, and therefore removes the WTF.

But the real solution, in my mind, is to rewrite the ng-minlength and ng-maxlength directives to handle the `undefined` case.