Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ValidateBindingBehaviour with custom validation strategy #12

Open
TimBailey-pnk opened this issue Dec 29, 2016 · 1 comment
Open

Comments

@TimBailey-pnk
Copy link
Contributor

Hi, I followed the instructions for overriding the default implementation of the validation strategy, but could not make it work. It seemed like the attached method was never called inside the ValidationBindingBehaviour class.

Also I have found a SO post about singleton behaviour inside a BindingBehaviour, so I've adjusted the code to not use the attached method and move the state to a object attached to the binding itself.

I can submit a PR for review.

@grofit
Copy link
Member

grofit commented Dec 29, 2016

Hello,

Currently there is a large re-write of the aurelia bindings which use the new shared view layer (treacherous-view) but this is currently not finished as there are some quirks with aurelia and attributes:

aurelia/templating-binding#106

The current library should be useable but it was a first pass approach at getting it working the newer version will make the approaches a bit more "streamlined" between different frameworks.

I know this doesn't solve your problem right now but almost all the code will be replaced with the new version.

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

No branches or pull requests

2 participants