下面是引用脚本的代码片段以及包含脚本和样式时发生的错误的屏幕截图。
<script src="../node_modules/angular/angular.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
下面还提到了上述代码段的文件夹结构
的package.json
{
"name": "dynamic-location",
"version": "1.0.0",
"description": "An angular directive for listing of the objects and tracking their events in map",
"main": "index.html",
"scripts": {
"test": "echo \\\"Error: no test specified\\\" && exit 1"
},
"keywords": [
"angular",
"dynamic",
"objects",
"event",
"tracking",
"map"
],
"author": "Subba",
"license": "UNLICENSED",
"dependencies": {
"angular": "1.5.0",
"bootstrap": "^3.3.7",
"grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-watch": "^1.0.0",
"leaflet": "^1.0.3",
"wiredep": "^4.0.0"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-autoprefixer": "^3.0.4",
"grunt-concurrent": "^2.3.1",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-connect": "^1.0.2",
"grunt-serve": "^0.1.6",
"grunt-wiredep": "^3.0.1"
}
}