angular - angular2, angular2-highcharts. Remove a chart from the page -


i have parent component (a) 2 child components (b) & (c). b contains angular2-tree populated on page load. c angular2-highcharts , information rendered when node on tree clicked.

when navigating between nodes, show charts , others wont. currently, when don't pass data chart options, assuming i've shown chart, chart continues render.

how destroy chart when don't want show?

didnt think of way destroy chart, have added *ngif html tag chart. hide chart when options set null.


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -