We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ed974a commit cbd1715Copy full SHA for cbd1715
1 file changed
angular-chart.js
@@ -10,8 +10,11 @@
10
define(['angular', 'chart'], factory);
11
} else {
12
// Browser globals
13
- if (typeof angular === 'undefined' || typeof Chart === 'undefined')
+ if (typeof angular === 'undefined') {
14
+ throw new Error('AngularJS framework needs to be included, see https://angularjs.org/');
15
+ } else if (typeof Chart === 'undefined') {
16
throw new Error('Chart.js library needs to be included, see http://jtblin.github.io/angular-chart.js/');
17
+ }
18
factory(angular, Chart);
19
}
20
}(function (angular, Chart) {
0 commit comments