-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
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
Labels
No labels