Enterprise Angular
Minimum price
Suggested price

Enterprise Angular

DDD, Nx Monorepos and Micro Frontends

About the Book

Important: Book moved!

This book moved to our website at ANGULARarchitects.io. Please also register here to get notified about news versions:

Download book or register to get notified after updates!


In the last years, I've helped numerous companies with implementing Angular based large scale enterprise applications. To handle the complexity of such applications, it's vital to decompose the whole system into smaller libraries. 

However, if you end up with lots of libraries which are too much intermingled with each other, you don't win much. If everything depends on everything else, you cannot easily change or extend your system without introducing breaking changes.

Domain-driven Design, esp. it's discipline strategic design helps with this and it also can be the foundation for building micro frontends.

In this book, which bases upon several blog articles I've written about Angular, DDD, and Micro Frontends, I show how to use these ideas. 

Workshops and Consultancy

If you are interested into on-site workshops or consultancy for your Angular projects, feel free to reach out to us. You find further information here.

  • Share this book

  • Categories

    • Computers and Programming
    • AngularJS
    • JavaScript
    • Software Architecture
  • Feedback

    Email the Author(s)

About the Author

Manfred Steyer
Manfred Steyer

Trainer, consultant and programming architect with focus on Angular. Google Developer Expert (GDE) and Trusted Collaborator in the Angular team who writes for O'Reilly, the German Java Magazine, and windows.developer. Regularly speaks at conferences.

Provides Angular workshops and consultancy.

Table of Contents

  • Introduction
    • Help Improve this Book!
    • Trainings and Consultancy
    • Thanks
  • Strategic Domain-Driven Design
    • What is Domain-Driven Design?
    • Finding Domains with Strategic Design
    • Domains are Modelled Separately
    • Context-Mapping
    • Conclusion
  • Implementing Strategic Design with Nx Monorepos
    • Implementation with Nx
    • Categories for Libraries
    • Public APIs for Libraries
    • Check Accesses Between libraries
    • Access Restrictions for a Solid Architecture
    • Your Architecture by the Push of a Button: The DDD-Plugin
    • Conclusion
  • From Domains to Microfrontends
    • Deployment Monoliths
    • Micro Frontends
    • UI Composition with Hyperlinks
    • UI Composition with a Shell
    • The Hero: Module Federation
    • Finding a Solution
    • Conclusion
  • The Microfrontend Revolution: Using Module Federation with Angular
    • Example
    • Activating Module Federation for Angular Projects
    • The Shell (aka Host)
    • The Micro Frontend (aka Remote)
    • Trying it out
    • A little further detail
    • Conclusion and Evaluation
  • Dynamic Module Federation
    • Module Federation Config
    • Routing to Dynamic Microfrontends
    • Improvement for Dynamic Module Federation
    • Bonus: Dynamic Routes for Dynamic Microfrontends
    • Conclusion
  • Plugin Systems with Module Federation: Building An Extensible Workflow Designer
    • Building the Plugins
    • Loading the Plugins into the Workflow Designer
    • Providing Metadata on the Plugins
    • Dynamically Creating the Plugin Component
    • Wiring Up Everything
    • Conclusion
  • Using Module Federation with Nx
    • Example
    • The Shared Lib
    • The Module Federation Configuration
    • Trying it out
    • Deploying
    • What Happens Behind the Covers?
    • Bonus: Versions in the Monorepo
    • Pitfalls
  • Dealing with Version Mismatches in Module Federation
    • Example Used Here
    • Semantic Versioning by Default
    • Fallback Modules for Incompatible Versions
    • Differences With Dynamic Module Federation
    • Singletons
    • Accepting a Version Range
    • Conclusion
  • Multi-Framework and -Version Micro Frontends with Module Federation: The Good, the Bad, the Ugly
    • The 1st Rule for Multi Framework(version) MFEs
    • A Good Message Before We Start
    • The Good
    • The Bad
    • The Ugly
    • Conclusion
  • Pitfalls with Module Federation and Angular
    • “No required version specified” and Secondary Entry Points
    • Unobvious Version Mismatches: Issues with Peer Dependencies
    • Issues with Sharing Code and Data
    • NullInjectorError: Service expected in Parent Scope (Root Scope)
    • Several Root Scopes
    • Different Versions of Angular
    • Bonus: Multiple Bundles
    • Conclusion
  • Bonus Chapter: Automate Your Architectures with Nx Workspace Generators
    • Schematics vs Generators
    • Workspace Generators
    • Templates
    • Defining parameters
    • Implementing the Generator
    • Update Existing Source Code
    • Running the Generator
    • Additional Hints
    • Conclusion
  • Literature
  • About the Author
  • Trainings and Consulting

The Leanpub 60-day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Do Well. Do Good.

Authors have earned$11,577,045writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF, EPUB and/or MOBI files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub