5
角度-グーグルマップを使用しながら、_が定義されていない私は、私はこのエラーを取得していますなぜ私はそれが正確に何をやっているので、私は本当に、理解していないReferenceError: _ is not defined
angular-google-mapsがにReferenceError:
を取得していますウェブサイトに書かれています。
また、同様の質問を検索しましたが、助けにはなりませんでした。
bundle.js
$ = window.$ = window.jQuery = require('./lib/jquery');
require('./lib/angular-simple-logger.js');
require('./lib/angular-google-maps.js');
require('./lib/lodash.js');
私はindex.html
にbundle.js
importindです。私もngLodash
を使用しようとしましたが、結果は出ませんでした。
app.js
var app = angular.module('app', [
'ngLodash',
'nemLogging',
'uiGmapgoogle-maps'
]);
app.config(function(uiGmapGoogleMapApiProvider) {
uiGmapGoogleMapApiProvider.configure({
key: '{myKey}',
v: '3.20',
libraries: 'places' // I don't need the whole map, only the places
});
});
はまた、私は誰かがこのライブラリといくつかの経験を持っていますし、私にヒントを与えることができますGoogle Developer Console
からGoogleMaps Api
を有効に?
私は同じ問題に直面しています。私はmavenを使用して依存関係としてアンダースコアを追加しましたが、同じエラーが発生しました。誰も助けてくれますか? – Sategroup