Exception Handling in Angular 10
I am using Angular 10 and when I click to open Persons page I get “Nulljector error” and redirect me to the home page .
NullInjectorError: No provider for PersonServiceProxy!
<a ng-reflect-router-link="/app/main/phonebook" href="/app/main/phonebook">phonebook </a>
The solution :
Add your ServiceProxy to providers in “\angular\src\shared\service-proxies\service-proxy.module.ts”.
- Open service-proxy.module.ts file
- In @NgModule > providers > Add this Line “ApiServiceProxies.PersonServiceProxy” like this
Comment (1)
There is visibly a lot to know about this.
I suppose you made various good points in features also.