Tag: using Angular 5 Services

using Angular 5 Services

Generating the Service File The robust Anguar CLI tool will allow us to quickly and easily generate a service file for our project. Hop into your console within the project folder and run the following command: $ ng generate service data Working in the Service File Open up the file, located at: /src/app/data.service.ts: import { Injectable … Continue reading using Angular 5 Services