Angular offers excellent functionality in its router, including resolvers to load data and easily accessing path and query params. However the way these are used in the documentation we typically lose TypeScript’s type-safety. A way to win it back is to use computed property types and enums. Traditionally we write…