0

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.

ngMap Error

Pengyy
  • 37,383
  • 15
  • 83
  • 73
Renil Babu
  • 2,118
  • 1
  • 20
  • 29

2 Answers2

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 :

  1. You have ngMap src in your lib folder
  2. You have added the dependency
  3. You have added the ngMap.js to your index.html
Pengyy
  • 37,383
  • 15
  • 83
  • 73
Dan M. CISSOKHO
  • 1,070
  • 1
  • 12
  • 27