Casting Date String from HTTP Json Response In Angular

A clean and strongly typed solution using Decorator Pattern

Sunny Sun
Level Up Coding
Published in
3 min readMay 31, 2020

--

The most important benefit of Typescript is strong typing. TypeScript provides compile time type checking. Thus, developers can work more efficiently with large and complex apps.

The decorator pattern is another commonly used pattern in TypeScript. Combining the decorator pattern with strong typing, we can build a clean and powerful solution in Angular.

--

--

I am full stack developer. Love coding, learning, writing. Checkout my NestJS course: https://shorturl.at/cpJM7, visit my blog https://sunnyy02.github.io