top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Service Injection In Angular?

0 votes
443 views
What is Service Injection In Angular?
posted Mar 11, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In Angular, Service Injection will handle by Provider.

When you add a service provider to the providers array of the root module, it’s available throughout the app. Additionally, when you import a module that has providers, those providers are also available to all the classes in the app as long they have the lookup token.

answer Apr 30, 2018 by Chahat Sharma
...