Coding task · Angular course · Module 5: Services and DI
Practice: Component-level Provider
Adding a service to a component's providers creates a new instance for that component and its children. Useful when each component needs its own state.
Task
Complete the component with its own CounterService instance in providers.