Coding task · Angular course · Module 5: Services and DI
Practice: Creating a Service
The service decorator with the option that registers it in the root ('root') creates a singleton available throughout the application. This is the recommended approach since Angular 6.
Task
Complete SamuraiService so that Angular can inject it and creates one shared instance for the whole application.