Plotly in Angular 4 not finding HTML element with ngIf
问题 I am building an angular 4 App that needs a graph. For graphs I am using Plotly.js , this works as it should, except if I use ngIf . So what I want to do: I have a div in wich the graph is initialized.This works the first time. I also have some filters that work just fine.However I made a button to switch the view, instead of showing a graph I want to show a table with the values of the graph.When I switch the view back to graph,then i get the error that plotly cannot find the div. So here