leonardosalles / ionic2-zoom-area

A zoom area component with pinch support
MIT License
33 stars 13 forks source link

Error: StaticInjectorError[ZoomAreaProvider] #8

Closed big-r81 closed 6 years ago

big-r81 commented 6 years ago

Hi,

after fixing #6 I'm getting the following error:

ERROR Error: Uncaught (in promise): Error: StaticInjectorError[ZoomAreaProvider]: 
  StaticInjectorError[ZoomAreaProvider]: 
    NullInjectorError: No provider for ZoomAreaProvider!
Error: StaticInjectorError[ZoomAreaProvider]: 
  StaticInjectorError[ZoomAreaProvider]: 
    NullInjectorError: No provider for ZoomAreaProvider!
...

If this component is lazy loaded, shouldn't the provider be in the NgModule declaration in zoom-area.module.ts? You defined it in the forRoot() method...

leonardosalles commented 6 years ago

1.0.11 added to npm, example app was updated too, LazyLoading is working perfectly right now. Thanks for your help and for good issues 😜