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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -