You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: