Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Applying directives at tag level generates excessive digests #85

@jaredjensen

Description

@jaredjensen

I've been troubleshooting a performance issue in a client's application that uses this library. The app generates a large number of form field, each implemented as a directive with conditional template. I've determined that each validation directive defined in customValidationTypes.js results in a digest cycle, even if the app's template is simply <input>. So if there are 16 out-of-box validations, I get 16 digest cycles for that one input field. This is resulting in ~10,000 digest cycles to load the page.

This makes sense given the validation directives appear to be created at the tag level, so they're linked whether used or not. Is this the intended design or am I misunderstanding how the library is used?

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