Leanpub Header

Skip to main content

Topics

Angular

From components, templates and dependency injection to the router, forms, signals, the compiler, monorepos, micro frontends and the migration from AngularJS, Angular as told through the free samples of the Leanpub books about it.

Created from the free samples of 14 Leanpub books and the descriptions and tables of contents of 28 more, with every source cited.

Angular is a framework for building web applications in TypeScript, developed at Google. An application is a tree of components, each a class with a template, and the framework supplies what a large application needs beside them: dependency injection, a router, forms, an HTTP client and a build tool. The name covers two different things, which a book on moving between them takes care to separate: every version from 1 is called AngularJS, a framework for JavaScript released in 2010, and every version from 2 onward is called simply Angular, a rewrite that shares its ideas and little of its code.[3]

The framework has a reputation for demanding much and repaying it. One author warns that even for experienced JavaScript developers its learning curve is steep, with moments when a learner dreams of switching to another library, and promises in return a place among the developers who can build applications of enterprise grade.[4] Its books reflect who uses it: a large share are about structure, how to divide a big system into libraries, share them in one repository, and let several teams deliver parts of one front end independently.[35][6]

This article covers where to begin, the history, components and the compiler, the router, forms and state, architecture at scale, tooling, back ends and mobile, testing, and interview preparation. Its sources are the free samples of the Leanpub books listed at the end, with the descriptions and tables of contents of the books whose samples were not available, and every claim that rests on a source is cited to it.

Where to start

Beginners have several project books. Getting Started With Angular (2020) builds a manager of client contacts across eleven chapters;[17] Angular 17 from Scratch (2025) builds a sales system and puts practice before theory;[18] Angular from Scratch (2021) is a short guide for people meeting the framework for the first time, often because a job requires it;[19] and Angular Bible (2025) covers components, routing and services.[20] Two very short guides, Angular Material Fundamentals - Setup and Angular Material Fundamentals - Setup Standalone (both 2022), do nothing but set up a working environment.[25][26]

A developer who has built something and wants to understand the framework should read Essential Angular (2017), a short overview of its key concepts by two members of the framework's core team, meant to be read after a first experiment and before a first serious application,[1] and then the deep treatments of single parts: Angular Router (2018), which assumes familiarity with the rest and discusses only routing,[2] Angular Reactive Forms (2017) on forms,[32] Mastering Angular Signals on the newer model of reactivity,[34] and Angular Change Detection Simplified (2022) on how the framework decides what to redraw.[24]

Architects and team leads are the audience of Enterprise Angular: Micro Frontends and Moduliths with Angular (2024) and Angular Architecture Patterns (2020),[35][36] and of Angular Microfrontends with Nx and Native Federation, which asks for comfort with current Angular and no experience of micro frontends.[6] Those maintaining an application written in the older framework have Upgrading Angular Applications (2017),[3] and candidates have The Angular and TypeScript Interview Compendium.[10]

History

AngularJS appeared in 2010 and made popular the idea that a page's markup could be bound to data, so that a change in one showed in the other without code to copy it across. By the middle of the decade its performance on large pages and its unusual concepts had become liabilities, and in 2016 Google released a successor written in TypeScript and built on components. The break was sharp enough that applications had to be migrated and not merely updated. Since then Angular has changed by regular major versions: a faster rendering engine in 2020, components that need no enclosing module in 2022, and from 2023 signals, a simpler way of tracking changing values.

The books on the shelf come from every stage. D3 on AngularJS (2014), A Warrior's Guide to AngularJS and Lazy Programmer's Guide to Angular 1.x (both 2016) teach the first framework; the second describes it as a structural framework from Google, concerned only with the logic of an application and not with its appearance, and commends its version of the pattern that separates data, interface and interaction, in which the developer assigns code to layers and the framework connects them. Frameworks of the kind, it says, exist because schedules are tight and the range of browsers and devices has made building a site more complex.[11][9][23] Introduction to Angular 2 (2016) and Practical Angular 2 Book were written while the successor was new, the latter during its beta, and both begin with a primer on TypeScript.[21][22] Upgrading Angular Applications explains the renaming: the new framework was first called Angular 2, but once its team adopted version numbers that advance with every breaking change, with a fourth version out and a fifth near, the number ceased to mean anything, and the two were distinguished by name instead.[3] The adjacent History of JavaScript Frameworks (2024) places both in the longer succession of JavaScript frameworks since the 1990s, a period that some call a renaissance and that leaves others fatigued by the rate at which tools are replaced.[41] At the recent end, Mastering Angular Signals is revised for a version of 2026,[34] and Angular Microfrontends with Nx and Native Federation notes that the tooling for its subject has changed enough that older tutorials no longer match it.[6]

Components and the compiler

Upgrading Angular Applications sets out what distinguishes Angular's components from what went before. Both frameworks use HTML, dependency injection and components, but in Angular components are the unit from which everything is built; they are encapsulated, so that data is not inherited from an enclosing scope and must be passed in and out through declared inputs and outputs; and templates are compiled ahead of time, as part of the build, with the static parts of an application clearly separated from the dynamic. The book's subject is the library that lets components of both frameworks run in one application, which it calls a hybrid, while the old code is replaced. It advises writing new AngularJS code in the newer style before any migration begins, and describes two ways of proceeding: route by route, which is coarse, or from the reusable components upward to the root of the tree. Whether to move the code to TypeScript before the upgrade begins is among the questions its first chapter takes up.[3]

That compiler is the first subject of Essential Angular. The framework, it explains, can compile templates in the browser as the application starts or beforehand as part of the build, and the second has four advantages: the compiler, the largest part of the framework, need not be sent to the user; templates become type-checked code; a bundler can remove whatever the application does not use; and start-up is faster, since compilation was its most expensive step. The first framework could not do this, the book adds, because it lacked a clean separation of static and dynamic data. Later chapters treat modules as units of compilation, each declaring its own components, importing what they need and exporting what others may use, and then components and directives, dependency injection and change detection. The examples throughout are taken from one small application, a list of recorded talks that can be filtered, watched and rated.[1] Angular Change Detection Simplified goes through the last of these by reading the framework's own source.[24]

For the interface itself there is a set of very short books, which their author calls shooks, each of about twenty pages, on single parts of the framework's library of ready-made components: icons, an autocomplete field, a slider, a table with drag and drop, and the simple form controls.[27][28][29][30][31] D3 on AngularJS, by contrast, is half a primer on a charting library, with the integration into the framework in its second half.[11]

The router

Angular Router, among the best-selling books here, promises a complete description, the mental model, the constraints of the design and the subtleties of the interface, and begins from first principles. An application is a tree of components, some of them reusable parts such as lists and tables and some representing screens; the router is concerned with the second kind, or more exactly with their arrangements, and an arrangement of application components that defines what is visible is what the book calls a router state. The address bar gives web applications an advantage over native ones, since a state can be referred to, bookmarked and shared, and in a well-behaved application every change of state changes the address and every change of address changes the state: a URL is a router state written out. The router's work is then a pipeline, applying redirects, recognising the state, running guards and fetching data, and activating components, and the book follows an application resembling a mail client through each stage. The same router can divide an application into bundles that are loaded only when needed, which the introduction counts among the things that are not trivial to do transparently.[2]

Forms and state

Forms are where business applications spend much of their code. Angular Reactive Forms is a guide to the framework's programmatic forms in three parts, a reference to the interface in which each method has a code sample and notes, a cookbook of common cases that can be used as complete solutions, and advanced forms;[32] Angular Form Essentials (2025) is a practical introduction that covers both styles of form, validation and custom controls.[33]

State that changes over time was long handled in Angular with a library of observable streams. The adjacent The Clean Way to Use Rx (2020) is a reference of thirty-five recommended and discouraged practices with such streams, whose concepts, it says, do not depend on the programming language; its examples are given in one language, with equivalents in two others, and its rules are drawn from projects, forums and the libraries' own documentation.[13] Mastering Angular Signals presents signals as the remedy for the difficulties of that style, long chains of stream operators and a notorious class of error about values that change during a check, and covers migration to them.[34] From File to Framework shows current idiom in use, converting streams to signals and using the newer syntax for conditions and loops in templates, in a companion volume that rebuilds an operator's console of thirty-three screens and treats its overview screen as the one on which a wrong figure is a safety matter and not a display bug, since it is the screen an operator leaves open and trusts in place of the others. Its sample chapter begins with a warning that preparation is easily mistaken for progress: five chapters had produced parts that compiled and none had yet been made to work with another.[7]

Architecture at scale

The reason for a workspace, a single repository holding several applications and the libraries they share, is told from experience in Angular Workspace - The Ultimate Guide (2020). Its author's team had published about a dozen libraries as separate packages, some depending on others, so that a small change in one meant rebuilding and redeploying several; when the framework's tooling began to support many projects in one workspace, with library projects as a kind of their own, all of them could share one set of dependencies, one version of the framework and one configuration for building, testing and linting. The author considers the library project the more important of the two changes, because it permits architectures that the old workflow of publishing and consuming packages made too slow to attempt.[5] Effective Angular Code Reuse Strategies and Techniques (2020) is about recognising what is worth reusing,[37] and The Angular Developer's Nx Handbook (2022), a free book, introduces a build system for such repositories by comparison with the framework's own command-line tool, with which it assumes the reader is familiar.[38]

Enterprise Angular: Micro Frontends and Moduliths with Angular, drawn from its author's consulting work, covers the division of large systems into libraries along the lines of the business domain and into micro frontends.[35] Angular Architecture Patterns applies layered architecture to the framework, with a working reference application.[36] Angular Microfrontends with Nx and Native Federation is a case study in micro frontends: an online shop whose shell loads separately built parts at run time, taken from an empty workspace to a deployed and tested system. It is frank that the architecture solves an organisational problem and only adds cost where that problem is absent, that the tools are rough in places, and it keeps its failed first attempts in the text with what each revealed. The book was prompted by a change of tooling: the generators that earlier tutorials relied on had been marked for removal, and the supported route now rests on the browser's own module system instead of a bundler's.[6]

Tooling

The framework's command-line tool generates code as well as building it, and two books by one author explain how to extend it. Schematics: Generating custom Angular Code with the CLI (2018) starts from the observation that programming includes boring, repeated tasks, some of which a library can absorb and the rest of which can be generated, and walks through writing a generator;[39] Angular Schematics Cookbook (2018) tours the interface and adds two recipes.[40]

Back ends and mobile

The Angular Firebase Survival Guide (2018), another best seller, pairs the framework with a hosted back end that supplies a database, file storage and authentication without servers to manage. It is a set of recipes to be consulted in any order, so that a developer asked for a particular feature can turn to the section that builds it, and it opens with ten practices its author recommends. The reasons given for the framework are that it produces maintainable applications for several platforms, has good tooling through TypeScript and is being adopted by large enterprises; those for the back end, that it needs no managed servers, scales by itself and supplies in an afternoon the database, storage and authentication that would take weeks to write. The recipes go on to real-time data, file uploads, background tasks and payments, and the author states that none of the services recommended in the book sponsors it.[4] Two adjacent books join AngularJS to servers of other kinds: Getting MEAN with MEMEs (2015) in a stack written in JavaScript throughout,[14] and Laravel and AngularJS (2022) with a PHP framework behind a programming interface.[15]

Mobile applications are reached through a toolkit that wraps a web application as a native one. The adjacent Ionic framework (2015) addresses web developers who have every skill but that of making an app, at a time when users were reported to spend far more time in apps than in mobile browsers, and builds a calculator;[12] Ionic 9, of 2026, builds an application for a tour company with the toolkit's current version and gives the framework a chapter of essentials.[16]

Testing

TDD for Angular: A beginner-friendly manual is a short manual that explains test-driven development and then builds an example application by it, in nested loops: an end-to-end test that fails first, then an integration test inside it, then tests of components, services and a repository, each made to pass in turn. Its preface observes that the definition of the red, green and refactor cycle is easy to find and that applying it in a real project takes much more specific knowledge, which the book offers as a blueprint to be followed in daily work.[8] The adjacent End to end testing with Protractor (2016) collects lessons on the end-to-end tool that the framework used in its earlier years.[42]

Interview preparation

The Angular and TypeScript Interview Compendium is a question-and-answer reference for developers who have built things with the framework and must now explain what they know. Its preface names what a reader should be able to do afterwards: explain why Angular moved toward components without modules, signals and built-in control flow, and how to stage a migration without disturbing delivery; choose among the available ways of holding state and defend the choice; and discuss security without mistaking a route guard for a security control.[10]

Questions about Angular

Which Angular book should I start with?

Beginners have several project books: Getting Started With Angular builds a manager of client contacts across eleven chapters, and Angular 17 from Scratch builds a sales system and puts practice before theory.[17][18] A developer who has built something and wants to understand the framework should read Essential Angular, a short overview from 2017 of its key concepts by two members of the framework's core team.[1]

What is the difference between Angular and AngularJS?

AngularJS is the first framework, released in 2010 for JavaScript, and every version from 2 onward is called simply Angular, a rewrite that shares its ideas and little of its code.[3] In Angular, components are the unit from which everything is built, data must be passed in and out through declared inputs and outputs, and templates are compiled ahead of time.[3] Upgrading Angular Applications covers running both in one hybrid application while the old code is replaced.[3]

What is ahead-of-time compilation in Angular?

Angular can compile templates in the browser as the application starts or beforehand as part of the build, and the second is ahead-of-time compilation.[1] Essential Angular gives it four advantages: the compiler need not be sent to the user, templates become type-checked code, a bundler can remove whatever the application does not use, and start-up is faster.[1]

What does the Angular router do?

The router manages which arrangement of an application's components is visible, which Angular Router calls a router state, and keeps it in step with the address bar: a URL is a router state written out.[2] Its work is a pipeline of applying redirects, recognising the state, running guards and fetching data, and activating components.[2]

What are signals in Angular?

Signals, part of Angular from 2023, are a simpler way of tracking changing values. Mastering Angular Signals presents them as the remedy for the difficulties of observable streams, long chains of stream operators and a notorious class of error about values that change during a check, and covers migration to them.[34]

Do I need micro frontends for an Angular application?

Angular Microfrontends with Nx and Native Federation is frank that the architecture solves an organisational problem and only adds cost where that problem is absent.[6] Its case study is an online shop whose shell loads separately built parts at run time, and Enterprise Angular: Micro Frontends and Moduliths with Angular covers dividing large systems into libraries along the lines of the business domain as well as into micro frontends.[6][35]

Sources

Every source is a Leanpub book. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.

  1. 1.
    Essential Angular, Victor Savkin, Jeff Cross, Nrwl.io Free sample: the introduction and the chapter on compilation, with the opening of the chapter on modules. 2017. Free sample: PDF · EPUB
  2. 2.
    Angular Router, Victor Savkin: The Complete Authoritative Reference Free sample: the introduction and the first chapters, on what routers do and the router's pipeline. 2018. Free sample: PDF · EPUB
  3. 3.
    Upgrading Angular Applications, Victor Savkin, Nrwl.io Free sample: the introduction, on the two frameworks' names, and the chapter on preparation. 2017. Free sample: PDF · EPUB
  4. 4.
    The Angular Firebase Survival Guide, Jeff Delaney: Build Angular Apps on a Solid Foundation with Firebase Free sample: the introduction, on why the two are paired, and the first recipes. 2018. Free sample: PDF · EPUB
  5. 5.
    Angular Workspace - The Ultimate Guide, Matt Vaughn Free sample: the opening, on what a workspace is and why it matters. 2020. Free sample: PDF · EPUB
  6. 6.
    Angular Microfrontends with Nx and Native Federation, Sandeep Kumar Patel: Building, Connecting, and Independently Deploying Angular Apps at Scale Free sample: front matter, the preface and the start of chapter one. 2026. Free sample: PDF · EPUB
  7. 7.
    From File to Framework, Grigorios Agathangelidis Free sample: chapter six, on the overview screen. 2026. Free sample: PDF
  8. 8.
    TDD for Angular: A beginner-friendly manual, Kamal Raj Sekar Free sample: the contents, the preface and the opening chapters on test-driven development. 2026. Free sample: PDF
  9. 9.
    A Warrior's Guide to AngularJS, Carlos Solis Free sample: the opening, on what AngularJS is, and the setup of an editor. 2016. Free sample: PDF · EPUB
  10. 10.
    The Angular and TypeScript Interview Compendium, Yohan J. Rodríguez: Interview Questions and Answers for Angular and TypeScript Developers Free sample: the preface and the first questions, on components. 2026. Free sample: PDF
  11. 11.
    D3 on AngularJS, Ari Lerner, Victor Powell: Create Dynamic Visualizations with AngularJS Free sample: a short opening on the charting library only. 2014. Free sample: PDF · EPUB
  12. 12.
    Ionic framework, Nikola Brežnjak: step by step from idea through prototyping to the app stores Free sample: the opening, on native, web and hybrid apps, and the installation. 2015. Free sample: PDF · EPUB
  13. 13.
    The Clean Way to Use Rx, Yair Carreno: Guide manual and tips for implementing with Rx extensions. Free sample: the preface and the summary of the rules. 2020. Free sample: PDF · EPUB
  14. 14.
    Getting MEAN with MEMEs, Nikola Brežnjak: Deploying MEAN TODO application to production Free sample: the opening, on the stack, and the installation of its parts. 2015. Free sample: PDF · EPUB
  15. 15.
    Laravel and AngularJS, Daniel Schmitz, Daniel Pedrinha Georgii: Learn how to build apps with AngularJS in the client and Laravel on server The free sample starts in the book's second part, on the server side: from the description and table of contents. 2022. Free sample: PDF · EPUB
  16. 16.
    Ionic 9, Andreas Dormann: Create awesome and AI-able apps for any platform The free sample is front matter and contents only: from those and the description. 2026. Free sample: PDF
  17. 17.
    Getting Started With Angular, Stephen Adams No sample: from the description and table of contents. 2020.
  18. 18.
    Angular 17 from Scratch, Daniel Schmitz: Build a sales app with Angular. No sample: from the description and table of contents. 2025.
  19. 19.
    Angular from Scratch, Ajdin Imsirovic: A friendly guide for absolute beginners No sample: from the description and table of contents. 2021.
  20. 20.
    Angular Bible, Ahmed khan: The beginners guide No sample: from the description. 2025.
  21. 21.
    Introduction to Angular 2, AJ Meyghani No sample: from the description and table of contents. 2016.
  22. 22.
    Practical Angular 2 Book, Daniel Schmitz, Daniel Pedrinha Georgii: With Node/npm, Typescript, SystemJS and Visual Studio Code No sample: from the description and table of contents. 2022.
  23. 23.
    Lazy Programmer's Guide to Angular 1.x, Kian Peymani: An efficient, yet comprehensive tutorial No sample: from the description and table of contents. 2016.
  24. 24.
    Angular Change Detection Simplified, Brecht Billiet No sample: from the description alone. 2022.
  25. 25.
    Angular Material Fundamentals - Setup, info@e-ips.com No sample: from the description of a book of about twenty pages. 2022.
  26. 26.
    Angular Material Fundamentals - Setup Standalone, Duncan Faulkner No sample: from the description of a book of about twenty pages. 2022.
  27. 27.
    Angular Material Fundamentals - Mat-Icon, Duncan Faulkner No sample: from the description of a book of about twenty pages. 2022.
  28. 28.
    Angular Material Fundamentals - Autocomplete, Duncan Faulkner No sample: from the description of a short book. 2022.
  29. 29.
    Angular Material Fundamentals - Mat-Slider, info@e-ips.com No sample: from the description of a book of about twenty pages. 2022.
  30. 30.
    Angular Material Fundamentals - Mat-Table, Duncan Faulkner No sample: from the description of a book of about twenty pages. 2022.
  31. 31.
    Angular Material Fundamentals - Common Controls, Duncan Faulkner No sample: from the description of a short book. 2022.
  32. 32.
    Angular Reactive Forms, Nir Kaufman: A comprehensive guide for building forms with Angular No sample: from the description and table of contents. 2017.
  33. 33.
    Angular Form Essentials, Cory Rylan: A practical beginners guide on how to build forms with Angular. No sample: from the description and table of contents. 2025.
  34. 34.
    Mastering Angular Signals, Muhammad Ahsan Ayaz: A Practical Guide to Modern Reactivity, Performance, and Migration No sample: from the description alone. 2026.
  35. 35.
    Enterprise Angular: Micro Frontends and Moduliths with Angular, Manfred Steyer: Module Federation - Nx - DDD No sample: from the description and table of contents. 2024.
  36. 36.
    Angular Architecture Patterns, Matt Vaughn: Apply Enterprise Principles and Patterns to Build Amazing Applications No sample: from the description and table of contents. 2020.
  37. 37.
    Effective Angular Code Reuse Strategies and Techniques, Matt Vaughn No sample: from the description and table of contents. 2020.
  38. 38.
    The Angular Developer's Nx Handbook, Lars Gyrup Brink Nielsen No sample: from the description and table of contents. 2022.
  39. 39.
    Schematics: Generating custom Angular Code with the CLI, Manfred Steyer No sample: from the description and table of contents. 2018.
  40. 40.
    Angular Schematics Cookbook, Zachary Bennett No sample: from the description and table of contents. 2018.
  41. 41.
    History of JavaScript Frameworks, Nicklas Envall No sample: from the description and table of contents. 2024.
  42. 42.
    End to end testing with Protractor, Walmyr Lima e Silva Filho: Lessons learned about e2e test automation No sample: from the description and table of contents. 2016.

Further reading

Other books in the library on neighbouring ground, not cited above.

This is an article created from the free samples of 14 Leanpub books and the descriptions and tables of contents of 28 more. We're building these articles to provide you, the Leanpub reader, with a good jumping-off point to discover more Leanpub books that are interesting and relevant to you. We never use material which is paid-only when building these articles: we only use material which is already free on Leanpub. However, Leanpub authors can opt out from inclusion in articles from their book settings page.

Updated November 2026.

In the Leanpub store: 39 books · 2 courses in the Angular category · also filed under AngularJS

All topics