using Angular validation directives with Breeze blocks any input that is invalid

后端 未结 4 1515
醉梦人生
醉梦人生 2021-02-20 14:15

If you add any of the angular directives for validation (ng-minlength, ng-maxlength, ng-pattern, etc.) to an input that is bound to a breeze entity it blocks any user input if f

4条回答
  •  你的背包
    2021-02-20 14:22

    I'm happy to look at your plunker and see if there is something Breeze can do about this.

    I'm not terribly surprised. Ng also struggles when you combine it with HTML 5 validation as I recall. You really should only use one scheme I think.

    Do you disagree?

    Also, have you considered the zValidate directive in the Breeze Labs breeze.directives.js? We think that is the best way to expose Breeze entity property validation errors in the view.

提交回复
热议问题