TypeScript in Angular - Use generic class with Service 🧋
Story 🏕️
When we want to use Service's property/method with a special types each component.
Basiclly, we want to reuse a logic inside Service with type-checking at outside of that Service.
For example, in ExampleService:
import { Type } from '@angul...
loclv.hashnode.dev2 min read