I am working on a little interface built around AngularJS. I have an index.html
file and I built a route to a base.html
file (using ng-view) which contains several elements including a Morris chart.
However, when I launch my index.html
everything from the base.html
is displayed... except the chart. And I have the following error in the console :
Error: Graph container element not found
So I tried, to move my scripts morris.js
(and 2 others) to the base.html
juste after my element (that will contain the chart) is created but it doesn't work neither.
index.html
<!DOCTYPE html>
<div ng-app="pistApp" ng-controller="MainController" id="wrapper">
<div ng-view id="page-wrapper">
</div>
</div>
base.html
<!-- other elements who works but I simplify -->
<div id="morris-area-chart"></div>