0
'스마트 테이블'모듈을 모듈에 추가하려고합니다. 웹 사이트 (http://lorenzofox3.github.io/smart-table-website/)의 지시 사항을 따르고 스마트 테이블을 설치하기 위해 bower 설치 각형 스마트 테이블을 사용했습니다. AngularJS 다중 모듈 오류
angular.module("App", ['ngRoute','ui-leaflet'])
나는 위의 코드에 '스마트 테이블'추가
: 는angular.module("App", ['ngRoute','ui-leaflet','smart-table'])
내 응용 프로그램은 더 이상 작동하지 않습니다. 저는 여러 가지 솔루션을 시도하면서 모듈이 함께 작동하지 않는 이유를 파악할 수 없었습니다.
편집 :
이 내 index.html 파일에서입니다 :
<script type="text/javascript" src="js/leaflet.js"></script>
<script type="text/javascript" src="/bower_components/angular-smart-table/dist/smart-table.js"></script>
그리고 내 bower.json 파일에서 : 당신이에 포함해야 할
{
"name": "",
"homepage": "https://github.com/auth0-samples/auth0-angularjs-sample",
"authors": [
""
],
"description": "",
"main": "",
"moduleType": [],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"auth0-lock": "10.2.2",
"angular-jwt": ">= 0.1.3",
"angular-lock": "~1.0.2",
"a0-angular-storage": "0.0.5",
"angular-ui-router": "~0.3.1",
"bootstrap": "~3.3.7",
"angular-smart-table": "2.1.8"
},
"resolutions": {
"angular": "1.5.8"
}
}
검사 오류를 추가 .. 당신은 다른 곳에서 JS 파일 참조 –
을 포함하는 미스 내 HTML 코드에서 JS 파일 참조가 없거나있을 수 있습니다? – user7312431
"\t 콘솔에서 오류를 확인하십시오. js 파일 참조를 포함하지 못할 수도 있습니다."@PankajParkar가 + bower.json 및 bower.json을 설치하고 설치하는 데 사용했던 명령을 + 말했다. – AndreaM16