Angular, one concept at a time
Each lesson adds one idea to this site and maps it to something you already know from React / Next.js, jQuery or MVC. The end goal: Angular driving GSAP and Three.js.
- 00 Setup & how the app boots≈ create-next-app, layout.tsx, main.tsx
- 01 Components & templates:
{{ }},[prop],(event)≈ JSX, jQuery .text() / .on() - 02 Control flow:
@if,@for,@switch≈ &&, .map() with key, Razor @if - 03 Signals:
signal,computed,effect≈ useState, useMemo, useEffect - 04 Inputs, outputs & ng-content≈ props, callbacks, children
- 05 Services & dependency injection≈ context / custom hooks, MVC services
- 06 Routing deeper: params, lazy loading, guards≈ app router, dynamic(), middleware
- 07 HTTP & data loading≈ fetch / TanStack Query, $.ajax
- 08 Forms≈ controlled inputs, MVC model binding
- 09 Lifecycle & the DOM:
viewChild,afterNextRender,DestroyRef≈ useRef, useEffect cleanup, $(document).ready - 10 Change detection, zone.js, OnPush, zoneless≈ React.memo; the big difference from React
- 11 @defer & performance≈ lazy + Suspense, next/image
- 12 SSR & hydration: server vs client rendering, incremental hydration≈ Next.js SSR / SSG vs a Vite SPA, Razor pages
- 13 Angular-native animation (CSS, enter/leave)≈ Framer Motion AnimatePresence
- 14 GSAP inside Angular≈ useGSAP
- 15 Three.js inside Angular≈ react-three-fiber, by hand
- 16 GSAP + Three.js together, scroll-drivenan immersive scroll-driven hero
- 17 CMS blocks: a page builder≈ Sanity page builder, PortableText components map