As a precursor, i’m fairly new to angular.
My problem is using Chart JS and modals.
When I call a modal from a different menu item and return to the home menu item, the charts width and height is set to 0. Changes to the data do not cause the chart to reappear, nor does resizing the div which contains the chart.
The behaviour can be seen below:
I remove the modal when it is closed, and I’ve tried a lot of combinations like reloading the controller when i return to it, and nothing seems to fix the weird behaviour except a full refresh.
I’m wondering what would cause this weird behaviour, is it chart.js or Ionic?