Skip to content

Monitoring errors changes #38

@panta82

Description

@panta82

Hi, I want to create a tooltips property that would contain processed error data from corresponding validators (key to key mapping). For that, I need to listen to any change in validation errors and update my tooltips hash.

The first thing I tried was attaching directly to the .errors property on the model. However, I don't get notifications when its error arrays change and there is no equivalent to @each for properties (barring some hacks I found online).

Then I tried attaching to some variation of validators.@each construct. Unfortunately, I would need validators.@each.errors.@each and that's a bit further than Ember allows.

Do you have any idea what I could attach or listen to? Some kind of global allErrors property would be ideal for this, but I would take anything at this point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions