Skip to content

Commit ef795b9

Browse files
navarroaxeljtblin
authored andcommitted
Fix #452 using bower with Chart.js +2.2.0 (#453)
1 parent 2182f44 commit ef795b9

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ but must be set via standard options e.g. `ChartJsProvider.setOptions({ responsi
3838

3939
### bower
4040

41+
Bower support has been dropped in Chart.js since version 2.2.0 but you can still use it with Bower thanks to bower-npm-resolver.
42+
43+
First, add the resolver in your .bowerrc file:
44+
45+
{
46+
"resolvers": [
47+
"bower-npm-resolver"
48+
]
49+
}
50+
51+
Then:
52+
53+
npm install -g bower-npm-resolver
4154
bower install --save angular-chart.js
4255

4356
### manually

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
],
4040
"dependencies": {
4141
"angular": "1.x",
42-
"Chart.js": "2.x"
42+
"chart.js": "npm:chart.js#2.x"
4343
}
4444
}

0 commit comments

Comments
 (0)