# How to Architect a Large Angular App for Dynamic Loading and Role-Based Access

*Mastering standalone lazy loading, functional* `canMatch` *guards, and dynamic runtime component instantiation.*

> Large Angular codebases require disciplined architectural guardrails to prevent bloat and security regressions. In this guide, we dive into building enterprise-grade Angular frontends: configuring standalone route splitting, intercepting route resolution with `canMatch` so unauthorized code is never downloaded, instantiating runtime components dynamically with `ViewContainerRef`, and managing reactive permissions with Signals.

<https://buildwithsunny.com/posts/how-would-you-architect-a-large-angular-app/>
