angular/angular
@angular/platform-browser-dynamic
The JIT-compatible browser bootstrap. Bundles @angular/compiler so that templates can be compiled at runtime in the browser. Mostly legacy at this point — production builds AOT-compile and this package is rarely needed.
Purpose
Provides platformBrowserDynamic() and platformBrowserDynamicTesting() — the entry points used in:
- Test harnesses (
platformBrowserDynamicTestingis the default test platform for manykarmasetups). - Stackblitz-style sandboxes that compile templates at runtime.
- Older NgModule-based apps that haven't moved to AOT bootstrap.
The package is small (~700 lines of TypeScript) — most of its weight comes from including the compiler in the bundle.
Directory layout
packages/platform-browser-dynamic/
├── src/
│ ├── platform_core_dynamic.ts
│ ├── platform_browser_dynamic.ts
│ └── ...
├── testing/
└── public_api.tsKey abstractions
| Type / function | File | What it is |
|---|---|---|
platformBrowserDynamic |
packages/platform-browser-dynamic/src/platform_browser_dynamic.ts |
JIT-capable browser platform. |
platformBrowserDynamicTesting |
packages/platform-browser-dynamic/testing/ |
The default test platform. |
Integration points
@angular/core— uses the same DI / runtime as the AOT bootstrap.@angular/compiler— bundled in to perform JIT compilation.@angular/platform-browser— JIT-bootstrap reuses most of the rendering stack.
Status
New apps should use bootstrapApplication from @angular/platform-browser (AOT) rather than this package. The package remains because tests and a long tail of legacy apps still depend on it.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.