vimalavinisha / angular2-google-chart

Angular 2 google chart
MIT License
59 stars 45 forks source link

Charts inside `*ngIf` blocks result in error on second load #21

Open matteson opened 8 years ago

matteson commented 8 years ago

If a chart component is included in a block that is wrapped by an ngIf statement, then an error will be thrown the second time the chart is viewed. I have a working example of this in this repo.

My current workaround is to simply avoid ngIf blocks, but this isn't satisfactory and requires me to maintain a fork of a widget library on which I depend. Any help in establishing a fix or a workaround would be appreciated.