Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Info

A service is a component that is not linked to a view.  It is a standard class that provides services to the components, and it does not have to be injectable.  In the example that follows, we are going to make the service injectable.

Consider this basic service 

Notice the decorator, it marks this class as Injectable.  Now we need inject it in a desired component

Injecting a Service


  • No labels