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 :-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.
- ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[Globals -> CommonService]:
- StaticInjectorError(Platform: core)[Globals -> CommonService]:
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.
Replies
Know the answer? Post it — somebody with the same question will find it here.