Code Snippets

Angular

CLI commands and patterns, kept current - standalone components, signals, and the syntax that changed while you were on another project.

Everything in Angular

  • Diagram: HttpClient through authInterceptorFn, which adds an Authorization header before the request reaches the server, with the 401 response looping back to the interceptor.

    09/02/2026

    An Angular auth interceptor, the functional way

    Attach a token to every outgoing request and handle a 401 in one place, using the functional HttpInterceptorFn rather than the class-based interceptor most search results still show.

  • Diagram: five ng CLI commands worth memorizing, with one flag flagged as having moved in Angular 19.

    08/23/2025

    Angular 19 CLI commands worth memorizing

    Here are the top Angular 19 CLI commands every developer should know since you will likely use them every day. Click here to get your free Angular 19 Cheat Sheet & Study Guide!