因此,我下載並安裝了fabricjs,在我的角度應用中使用了bower,並且我無法加載它。在角度應用中加載織物js
我在我的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>
任何人都有自己的角度應用程序內部與裝載面料任何成功?