Documentation update on requiring Chart.js using CommonJS and es6 (#3788)

This commit is contained in:
Jerry Chang 2017-01-21 16:42:21 -08:00 committed by Evert Timberg
parent ceec907bee
commit 696f8d3a39

View File

@ -44,11 +44,11 @@ To import Chart.js using an awesome module loader:
```javascript
// Using CommonJS
var Chart = require('src/chart.js')
var Chart = require('chart.js')
var myChart = new Chart({...})
// ES6
import Chart from 'src/chart.js'
import Chart from 'chart.js'
let myChart = new Chart({...})
// Using requirejs