In this tutorial, we will learn the easy and profound method to pass extra parameters to an Angular 10|9|8 service using @Inject decorator.

This comprehensive tutorial shade light on passing parameters to the Angular service through the angular dependency injection mechanism.

Injection tokens belong to Angular and permit the injection of values that don’t have a runtime representation. We can not inject everything like TypeScript; theoretically, it is not a JavaScript.

The injection tokens offer a robust and flexible way to connect to token value and permits that value to be injected into the component.

#angular #angular 10

How to Pass Parameters to Angular 10|9 Service using @Inject
17.15 GEEK