I'm encountering an issue where I'm receiving a ReferenceError: _ is not defined
while using the angular-google-maps
I'm puzzled as to why this error is occurring, as I believe I am following the instructions provided on the website.
I have tried looking for solutions to similar problems, but none of them have been effective.
bundle.js
$ = window.$ = window.jQuery = require('./lib/jquery');
require('./lib/angular-simple-logger.js');
require('./lib/angular-google-maps.js');
require('./lib/lodash.js');
I am including bundle.js
in my index.html
. I also attempted using ngLodash
, but without success.
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 only require the places functionality, not the entire map
});
});
I have also enabled the GoogleMaps Api
from the Google Developer Console
Is there anyone who has experience with this library and can offer me some guidance?