aurelia / aurelia/validation

rule dependencies

Open
#279 13 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
129
Forks
125
PR merge metrics
No merged PRs in 30d

Description

The old library had the ability to make rules dependent on others, i.e. re-evaluate a binding when other bindings are updated; now, this won't work:

``` html

```

Assume `passwordConfirm` must be equal to `password` (supported for example in `aurelia-validatejs` with `@equality`) the `passwordConfirm & validate` binding should trigger also when `password` changes, but the binding behavior doesn't know about the implementation specifics so it won't update/render when `password` is changed.

Contributor guide

Open the contributing guide

Research direction

Reproduce the password and passwordConfirm bindings from the issue, then locate the validation binding behavior and how it tracks dependent bindings. Confirm the fix by showing that changing password re-evaluates and renders the passwordConfirm validation state.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.