angular get component injector code example
Example: injection of generic services in angular
@NgModule({
imports: [CommonModule],
declarations: [Component3Component],
exports: [Component3Component],
providers: [ApiService, { provide: MY_API_ENDPOINT, useValue: "api.end.point.3" }]
})
export class App2Module { }