I was trying to use this modal, and it works fine, but a graph included in the modal takes forever to display. ~20 seconds. If I remove the ng-template ng-If=“itemValue(‘Object_Modal’)==‘ON’”, the modal is displayed when the page loads, and the included graph appears immediately.
The graph I’m using is from the widget, as shown here: New Pride Theme for HabPanel (Based on Matrix Theme) - Optimized for iPhone - #52 by crnjan
Are there some known issues with an ng-init / ng-model being contained inside a section controlled by by ng-If? Or the widget-chart? I tried to move the model init outside of the ng-If, and called it in the model as $parent.model, but that didn’t help…
(EDIT: fwiw, I moved items with a graph out of the ngIf, and am using them with ng-show/hide, instead. They stay in the flow of the page, so it works around the weird lag)
EDIT 2: I made some adjustments and moved to the modal, as defined in this link, and it works as expected.