i encountered an issue while trying to utilize ChartJS. I believe the problem lies in my improper inclusion of the chartjs library. I am following the instructions provided on this link.
Here is the structure of my project:
-app.html
--app/
------app.config.js
------app.module.js
------app.routes.js
------components/
-----------------visulizationsView.html
-----------------visulizationsCrtl.js
app.html:
<!DOCTYPE html>
<html ng-app="App">
<head>
<!-- Similar content from original text, omitted for brevity -->
</head>
app.module.js:
var app = angular.module('App', ['ngMaterial', 'ngRoute','chart.js']);
app.routes.js:
app.config(function ($routeProvider) {
// Similar content from original text, omitted for brevity
});
VisulizationsCtrl.js:
// Similar content from original text, omitted for brevity
visulizationsView.html:
// Similar content from original text, omitted for brevity
Error from the Console:
Error: [$injector:modulerr] http://errors.angularjs.org/1.5.5/$inject..