【发布时间】:2014-11-27 17:00:27
【问题描述】:
所以我在我的 Angular 应用程序中使用 bower 下载并安装了 fabricjs,但我无法加载它。
我的 app.js 文件顶部有以下内容。除面料外,其他一切都很好
angular
.module('myApp', [
'flow',
'fabric',
'ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch',
'ui.bootstrap',
'ui.router',
'controllers.main',
])
.config( function ($stateProvider, $httpProvider, flowFactoryProvider ) {
当我加载页面时,我收到以下错误。
[$injector:modulerr] Failed to instantiate module fabric due to: [$injector:nomod] Module 'fabric' is not available! You either misspelled the module name or forgot to load it.
我正在将它加载到我的 index.html 中
<script src="bower_components/fabric/dist/fabric.min.js"></script>
任何人在他们的角度应用程序中加载织物有任何成功吗?
【问题讨论】:
标签: javascript angularjs html5-canvas fabricjs