Mandar Shinde

Mandar Shinde

  • NA
  • 423
  • 110.1k

Regarding getting error related to StaticInjector.

May 20 2019 7:41 AM
Dear All,
I was developing one component using Angular 5 and ASP .Net MVC 5.
While debeloping that component I am getting one error which is not allowing me to access my website.
Error is as follows :-
  1. ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[Globals -> CommonService]:   
  2.   StaticInjectorError(Platform: core)[Globals -> CommonService]:  
I know I am doing mistake some where. What I want to do is that I have Global.ts with me and CommonServie.ts too, in that Global.ts there is one dictionary which is public.
I want assign data to dictionary with help of common service and I want to access that public dictionary in another component.
I don't know how I can achieve that but it will be very userfull for me.
please let me know if any one have easy solution.
Thanking you in advance.