我无法在我的angular应用程序中使用highcharts-ng。https://github.com/dmitruk/highcharts-ng
我已经这样安装了它:
bower install highcharts-ng我的index.js看起来像这样:
'use strict';
angular.module('highchartApp', [
'ngAnimate',
'ngCookies',
'ngTouch',
'ngSanitize',
'ui.router',
'ui.bootstrap',
'highcharts-ng'
])
.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('home', {
url: '/',
templateUrl: 'app/main/main.html',
controller: 'MainCtrl'
});
$urlRouterProvider.otherwise('/');
})
;我遗漏了什么?因为就像这样,我得到了这个错误....
Module 'highcharts-ng' is not available! You either misspelled the module name or blablabla如果解决方案太简单,请原谅我。
发布于 2015-04-03 04:25:47
你在你的网页中包含javascript页面了吗?
发布于 2015-08-17 20:49:06
您必须将对highcharts-ng的引用保存在您的bower文件中:
bower install highcharts-ng --savehttps://stackoverflow.com/questions/29421602
复制相似问题