I am using ngMap but it is throwing error. I check everything. Every thing is mentioned. I am using this in two places in my application . In one place it is working but not in the second place. Both are at different file location.
Asked
Active
Viewed 505 times
0
-
Add a plunker here. – clever_bassi Apr 18 '17 at 18:44
2 Answers
0
You may have forgotten to add ng-map
as a dependency in one of your modules (you talked about two different places, on different files):
angular.module('myApp', ['ngMap']);
This error is shown whenever Angular couldn't inject some service - if no service of name ngMap
is registered, it will check if a provider (conventionally named ngMapProvider
) is too. If not, then, you'll see the error.

SinDeus
- 516
- 1
- 6
- 21
0
You have yo check if :
- You have
ngMap
src in your lib folder - You have added the dependency
- You have added the ngMap.js to your index.html

Pengyy
- 37,383
- 15
- 83
- 73

Dan M. CISSOKHO
- 1,070
- 1
- 12
- 27