Using Elm's Json Decoders in Angular
summary
Shows how Elm's Json Decoders plug into an Angular TypeScript stack to validate incoming payloads at runtime, decoding nested objects, optional fields and arrays inside services and NgRx effects. Demo catches concrete failures: number→string type mismatch, missing keys and array-index errors, and distinguishes decoder errors from HTTP 404s. Integration returns either a typed value or a decode error, and the library is reported working in production for over a year.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:36about me
- 8:05decoder.ts Create a data decoder
- 9:55service.ts Load the data from the service
- 11:08Demo using NGRX Print the data in the template
related talks
27mDecoding Perplexing TypeScript
17mIntro to Decoders
36mFull Stack Type-safety: Elm with Scala
01h 07mReactive Frontends with RxJS and Angular - Sergi Almar
30mUse Angular for better React apps
06mAngular Epic Fails: AI Edition 2025
28mLeveraging Angular in Node.js with NestJS
29mUsing TypeScript with Redux Architecture
