Trying to integrate angular google maps with es6 syntax has been a challenge for me. In es5, the code typically looks like this:
.config(function(uiGmapGoogleMapApiProvider) {
uiGmapGoogleMapApiProvider.configure({
// key: 'your api key',
v: '3.20',
libraries: 'weather,geometry,visualization'
});
})
When attempting to implement it in es6, I encountered an error stating that "configure" is not a function.
export default function uiGmapGoogleMapApiProvider() {
uiGmapGoogleMapApiProvider.configure({
// key: 'your api key',
v: '3.20',
libraries: 'weather,geometry,visualization'
});
}
I am seeking advice on how to properly write this in es6. Thank you!