Aurelia Validation - no message shown on failed validation

拥有回忆 提交于 2019-12-06 04:00:29

I dug a bit through aurelia-validation source and found out that the only mention of ValidateCustomAttributeViewStrategy.TWBootstrapAppendToInput is in Intro documentation. This class and their static members seem to be renamed. The new static member you can use instead is TWBootstrapViewStrategy.AppendToInput. It can be found in TWBootstrapViewStrategyBase source code.

There's a pull request for that that that should be merged to master branch, however the Intro.md still contains the old config.

P.S. You don't need to add p elements. That will be handled automatically.

P.P.S. You also need to have .catch to handle all failed validation when calling validation.validate(). That will prevent the error you get in console.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!