This lesson will cover angular services and how to get started using them. Services are a special angular class that work to perform a specific function for the application. Services help separate out certain application functionality from components. Specifically functions that don't have to interact with a view. And these services are reusable. The same service class can be used and injected across multiple components. This helps to keep your application modular and more efficient. Services can provide many different functions, like making API calls to fetch data. It may also alter or process the data in some way before passing it to the component. Services are also used to share data between unrelated components. And Angular provides some pre-built services as well. HTTP client is a common one, which is used to make HTTP requests. To create a service you're gonna run the commands, NG generate service and then the service name. And here you can see it created two different types script files. This first type script file is used for writing tests for the component. And the second type script file here is for the class. The class uses the injectable decorator, which marks this class as an Angular service and passes a metadata object to provide configuration information. For this service, I'm gonna write a quick function here that mocks an API call and returns a list of items for the user. Then to use the service in a component, it has to be injected into that component class. I have a component called view list already generated over here. And first the service has to be imported. And then the service has to be injected into the component constructor. Providing the service to the constructor here allows the component class to call its methods. This is handled with Angular's dependency injection, which will be covered more in depth in a later lesson. Next, I'm gonna declare a variable to store the items and then make the call to the service to retrieve them. Now when the component initializes, it's gonna call that service function to retrieve the list items and store them in the array. Then in the component template, I'm just gonna quickly display that array. Now I'm gonna run the application. The main application component is already set up to show this list component here. Now I'm gonna run the application and then open it up in a browser window. And you can see the list is displaying in the component here. You can also call the service from the component template, but to do so you first have to make the service public. So back in the component class here I'm gonna switch this to make it a public service. Then I'm gonna add a button that when clicked will call this same method from the service. And then I'm gonna remove the service call that's being made in the component class. And now the component only fetches the list item from the service when the button is pressed. That's it for this quick introduction to services. The next lesson, we'll go over dependency injection.