-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing document #969
Comments
so do i put this line in my index.html? It works locally but what happens when I build for production? Won't that break? |
I'm also confused about this, my app seems to work just fine if I only include ng2-charts and don't install chart.js at all? "Embedding Chart.js in application is mandatory!" - is this no longer the case? Looks like chart.js is listed as a dependency of ng2-charts package.json, so npm installs it, and it seems to work fine without needing to add the script in angular.cli.json/index.html, docs need to be updated or am I missing something? |
I am using ng2-charts in our Angular application. It is working well so far. But run through the document, there is one line that you guys mention that Important
I checked the source of the file "node_modules/chart.js/src/chart.js". So basically it will contain all the CommonJS module, and it doesn't work on browser for sure.
So my question is: Is this step required? If not, please remove it from the documentation. Otherwise people will be confused.
The text was updated successfully, but these errors were encountered: