Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Highchart ng未加载_Javascript_Angularjs_Highcharts - Fatal编程技术网

Javascript Highchart ng未加载

Javascript Highchart ng未加载,javascript,angularjs,highcharts,Javascript,Angularjs,Highcharts,我试图在我的项目中实现highcharts ng,但是如果在注入过程中失败了 我有highcharts ng源文件,并且我已经将其添加到app.js中: return angular.module('xxx', ['ngRoute', 'ngCookies', 'xxxxxxx', 'xxxxxxxx',

我试图在我的项目中实现highcharts ng,但是如果在注入过程中失败了

我有highcharts ng源文件,并且我已经将其添加到app.js中:

return angular.module('xxx', ['ngRoute', 
                          'ngCookies',
                          'xxxxxxx',
                          'xxxxxxxx',
                          'xxxxxxxx',
                          'xxxxxxxx',
                          'xxxxxxxx',
                          'xxxxxxxx',
                          'highcharts-ng'
    ])
另外,我在app.js的require部分中有:

define(['angular', 
        'highcharts-ng'
], function (angular) {
最后,我将其纳入指令:

"严格使用",

define(['angular', 'jquery', '../module'], function(angular, $, module) {
    return module.directive('chart', ["highcharts-ng", function() {

    }]);
});
但是,它会抛出角度喷油器错误:


未知提供程序:highcharts ngProvider您确定highcharts js文件导入正确吗?是的,它的源代码是开发人员工具的一部分。您能够在JSFIDLE上设置该文件的实时演示吗?@MichalTakáč您解决了吗?您确定highcharts js文件导入正确吗?是的,它的源代码是开发者工具的一部分。你能(在JSFIDLE上)设置它的实时演示吗?@MichalTakáč你解决了吗?
Object {_invokeQueue: Array[2], _runBlocks: Array[0], requires: Array[0], name: "highcharts-ng"}