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
Post a Comment