3
Reply

What is @Injectable in Angular? When and why we used this?

Rakesh Dwivedi

Rakesh Dwivedi

6y
2.7k
1
Reply

    @Injectable is a decorator in Angular framework, it allows the service to be injected in Components or other service. Angular build on Dependency injection

    @Injectable is a decoratore method basically used in services. Whenever we want to inject one service into another service then we need to use this decorator function.

    Refer https://angular.io/api/core/Injectable