Packages

@angular/platform-browser-dynamic

22.2.3 · 14 Oct 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed

Your version

17.0.0

major8 Nov 2023Where it was published

17.3.12 is the newest release of 17.x.

In short

15 breaking4 deprecated

  • breaking

    Node.js v16 support has been removed and the minimum support version has been bumped to 18.13.0.

  • breaking

    The NgSwitch directive now defaults to the === equality operator,

  • breaking

    Angular now required zone.js version ~0.14.0

  • breaking

    Versions of TypeScript older than 5.2 are no longer supported.

  • breaking

    The mutate method was removed from the WritableSignal interface and completely

  • breaking

    OnPush components that are created dynamically now

  • breaking

    REMOVE_STYLES_ON_COMPONENT_DESTROY default value is now true. This causes CSS of components to be removed from the DOM when destroyed. You retain the previous behaviour by providing the REMOVE_STYLES_ON_COMPONENT_DESTROY injection token.

  • breaking

    The withNoDomReuse() function was removed from the public API. If you need to disable hydration, you can exclude the provideClientHydration() call from provider list in your application (which would disable hydration features for the entire application) or use ngSkipHydration attribute to disable hydration for particular components. See this guide for additional information: angular.io/guide/hydration.

Release note

CommitDescription
build - 59aa0634f4remove support for Node.js v16 (#51755)

animations

CommitDescription
feat - e753278faaAdd the possibility of lazy loading animations code. (#50738)
fix - 698c058e1cremove code duplication between entry-points (#51500)
refactor - 0598613950deprecation of AnimationDriver.NOOP (#51843)

benchpress

CommitDescription
feat - 2da3551a70report gc and render time spent in script (#50771)

common

CommitDescription
feat - fe2fd7e1a8make the warning for lazy-loaded lcp image an error (#51748)
feat - dde3fdabbdupgrade warning to logged error for lazy-loaded LCP images using NgOptimizedImage (#52004)
fix - da056a1fe2add missing types field for @angular/common/locales of exports in package.json (#52080)
fix - 85843e8212allow to specify only some properties of DatePipeConfig (#51287)
fix - 3bd85fb7b0apply fixed_srcset_width value only to fixed srcsets (#52459)
fix - 65b460448emissing space in ngSwitch equality warning (#52180)
fix - 86c5e34601remove code duplication between entry-points (#51500)
fix - 28a5925f53use === operator to match NgSwitch cases (#51504)

compiler

CommitDescription
feat - 1934524a0cadd docs extraction for type aliases (#52118)
feat - 7f6d9a73abexpand class api doc extraction (#51733)
feat - a7fa25306fextract api docs for interfaces (#52006)
feat - 7bfe20707fextract api for fn overloads and abtract classes (#52040)
feat - c7daf7ea16extract directive docs info (#51733)
feat - e0b1bb33d7extract doc info for JsDoc (#51733)
feat - b9c70158abextract docs for accessors, rest params, and types (#51733)
feat - a24ae994a0extract docs for top level functions and consts (#51733)
feat - 2e41488296extract docs info for enums, pipes, and NgModules (#51733)
feat - 34495b3533extract docs via exports (#51828)
feat - 7e82df45c5initial skeleton for API doc extraction (#51733)
fix - 6795cccbbbaccount for type-only imports in defer blocks (#52343)
fix - 23bfa10ac8add diagnostic for inaccessible deferred trigger (#51922)
fix - 31295a3cf9allocating unnecessary slots in conditional instruction (#51913)
fix - 2aaddd3f64allow comments between switch cases (#52449)
fix - ddd9df68bballow decimals in defer block time values (#52433)
fix - 7dbd47fb30allow newlines in track and let expressions (#52137)
fix - 0eae992c4eallow nullable values in for loop block (#51997)
fix - 073ebfe09eapply style on :host attributes in prod builds. (#49118)
fix - 81a287a79aavoid error in template parser for tag names that can occur in object prototype (#52225)
fix - 6c58252521compilation error when for loop block expression contains new line (#52447)
fix - 9d19c8e317don't allocate variable to for loop expression (#52158)
fix - 9acd2ac98benable block syntax in the linker (#51979)
fix - 1d871c03a5forward referenced dependencies not identified as deferrable (#52017)
fix - 16ff08ec70narrow the type of expressions in event listeners inside if blocks (#52069)
fix - ac0d5dcfd6narrow the type of expressions in event listeners inside switch blocks (#52069)
fix - 02edb43067narrow the type of the aliased if block expression (#51952)
fix - 83067b3ef2ng-template directive invoke twice at the root of control flow (#52515)
fix - 17078a3fe1pipes used inside defer triggers not being picked up (#52071)
fix - 861ce3a7c5pipes using DI not working in blocks (#52112)
fix - 1f5039bbd6project control flow root elements into correct slot (#52414)
fix - 81c315ec6etemplate type checking not reporting diagnostics for incompatible type comparisons (#52322)
fix - 1beef49d80update the minVersion if component uses block syntax (#51979)
fix - 386e1e9500work around TypeScript bug when narrowing switch statements (#52110)
perf - e5bca43224further reduce bundle size using arrow functions (#52010)

compiler-cli

CommitDescription
fix - 5b66330329allow non-array imports for standalone component in local compilation mode (#51819)
fix - 377a7abfdabypass static resolving of the component's changeDetection field in local compilation mode (#51848)
fix - 19c3dc18d3fix NgModule injector def in local compilation mode when imports/exports are non-array expressions (#51819)
fix - 11bb19cafchandle nested qualified names in ctor injection in local compilation mode (#51947)
fix - f91f222b55resolve component encapsulation enum in local compilation mode (#51848)

core

CommitDescription
docs - 59b6ec6be8Deprecate ChangeDetectorRef.checkNoChanges (#52431)
feat - 4f04d1cdabadd new list reconcilation algorithm (#51980)
feat - c7127b98b5add schematic to escape block syntax characters (#51905)
feat - 50275e58b8Add schematic to migrate control flow syntax (#52035)
feat - 81b67aa987add support for zone.js 0.14.0 (#51774)
feat - 048f400efcadd warnings for oversized images and lazy-lcp (#51846)
feat - 93675dc797conditional built-in control flow (#51346)
feat - 4427e1ebc2create function to assert not running inside reactive context (#52049)
feat - e23aaa7d75drop support for older TypeScript versions (#51792)
feat - 43e6fb0606enable block syntax (#51994)
feat - 3cbb2a8ecfimplement deferred block interaction triggers (#51830)
feat - 8be2c48b7cimplement new block syntax (#51891)
feat - a54713c831implement ɵgetInjectorMetadata debug API (#51900)
feat - 5b88d136afmark core signal APIs as stable (#51821)
feat - 8eef694defProvide a diagnostic for missing Signal invocation in template interpolation. (#49660)
feat - 40113f653cRemove deprecated CompilerOptions.useJit andCompilerOptions.missingTranslation. (#49672)
feat - 68ba798ae3revamp the runtime error message for orphan components to include full component info (#51919)
feat - 1a4aee7e49show runtime error for orphan component rendering (#52061)
feat - 687b96186csupport deferred hover triggers (#51874)
feat - e2e3d69a27support deferred triggers with implicit triggers (#51922)
feat - 16f5fc40a4support deferred viewport triggers (#51874)
feat - 59387ee476support styles and styleUrl as strings (#51715)
feat - 9cc52b9b85support TypeScript 5.2 (#51334)
feat - 7d42dc3c02the new list reconciliation algorithm for built-in for (#51980)
fix - 935c1816fdadd rejectErrors option to toSignal (#52474)
fix - 5411864c2eadjust toSignal types to handle more common cases (#51991)
fix - dcf18dc74callow toSignal calls in reactive context (#51831)
fix - dbffdc09c2avoid duplicated code between entry-points (primary, testing, rxjs-interop) (#51500)
fix - 4f69d620d9deferred blocks not removing content immediately when animations are enabled (#51971)
fix - df58c0b714disallow afterRender in reactive contexts (#52138)
fix - 5d61221ed7disallow using effect inside reactive contexts (#52138)
fix - 99e7629159do not remove used ng-template nodes in control flow migration (#52186)
fix - c7ff9dff2cdrop mutate function from the signals public API (#51821)
fix - 00128e3853drop mutate function from the signals public API (#51821) (#51986)
fix - ddef3ac9a4effects wait for ngOnInit for their first run (#52473)
fix - 5ead7d412densure a consumer drops all its stale producers (#51722)
fix - 1dd8558f82Ensure backwards-referenced transplanted views are refreshed (#51854)
fix - 50ad074505framework debug APIs getDependenciesForTokenInInjector and getInjectorMetadata (#51719)
fix - 80e7a0f8faguard usages of performance.mark (#52505)
fix - b9ea2d6900handle aliased index with no space in control flow migration (#52444)
fix - ffe9b1fcc2handle for alias with as in control flow migration (#52183)
fix - e5720edb46handle if alias in control flow migration (#52181)
fix - 4461cefa4fhandle trackBy and aliased index in control flow migration (#52423)
fix - 7368b8aaebhost directive validation not picking up duplicate directives on component node (#52073)
fix - 696f003553mutation bug in getDependenciesFromInjectable (#52450)
fix - d487014785Remove no longer needed build rule related to removed migration (#52143)
fix - 4da08dc2efremove unnecessary migration (#52141)
fix - 384d7aacd0replace assertion with more intentional error (#52427)
fix - 40bb45f329Respect OnPush change detection strategy for dynamically created components (#51356)
fix - 3a19d6b743run afterRender callbacks outside of the Angular zone (#51385)
fix - a2ba5482c3use TNode instead of LView for mapping injector providers (#52436)
fix - d5dad3eb4cviewport trigger deregistering callbacks multiple times (#52115)
perf - 8e4a7ab52bavoid repeated access to LContainer and trackBy calculation (#52227)
perf - 1dc14d9853avoid unnecessary callbacks in after render hooks (#52292)
perf - e90694259ebuild-in for should update indexes only when views were added / removed (#52051)
perf - 1032c1e1a5cache LiveCollectionLContainerImpl (#52227)
perf - 685d01e106chain template instructions (#51546)
perf - 88a0af64fdgenerate arrow functions for pure function calls (#51668)
perf - 37d627dbd4minimze trackBy calculations (#52227)
perf - 3861a73135Update LView consumer to only mark component for check (#52302)
refactor - 9b9e11fcafdeprecate allowing full context object to be replaced in EmbeddedViewRef (#51887)
refactor - ba9fc2419edeprecate the NgProbeToken (#51396)

http

CommitDescription
feat - 7dde42a5dfallow customization of the HttpTransferCache. (#52029)
fix - 8156b3d4ecDon't override the backend when using the InMemoryWebAPI (#52425)
perf - bd9e91ecf7reduce data transfer when using HTTP caching (#52347)

language-service

CommitDescription
feat - 449830f24eComplete inside @switch (#52153)
feat - e2416a284fEnable go to definition of styleUrl (#51746)
feat - 023a181ba5Implement outlining spans for control flow blocks (#52062)
feat - 7c052bb6efSupport autocompletion for blocks (#52121)
fix - 9d565cd6d6Autocomplete block keywords in more cases (#52198)

localize

CommitDescription
fix - 5a20a44c64ng-add schematics for application builder (#51777)

migrations

CommitDescription
feat - f0da7c2e44schematic to remove deprecated CompilerOptions properties (#49672)
feat - 965ce5a8c5Schematics for TransferState, StateKey and makeStateKey migration. (#49594)
fix - 09e905ad67account for separator characters inside strings (#52525)
fix - 4c878f90d2Add support for nested structures inside a switch statement (#52358)
fix - d7397fb29bEnsure control flow migration ignores new block syntax (#52402)
fix - 6a01d62b9dfix broken migration when no control flow is present (#52399)
fix - 9c2be715a3Fixes a bug in the ngFor pre-v5 alias translation (#52531)
fix - 54fed68bbfFixes the root level template offset in control flow migration (#52355)
fix - 57404d4723handle comma-separated syntax in ngFor (#52525)
fix - 54bc384661handle nested classes in block entities migration (#52309)
fix - c9b1ddff4dhandle nested classes in control flow migration (#52309)
fix - 6988a0070ehandle ngIf else condition with no whitespaces (#52504)
fix - e40e55d902Remove unhelpful parsing errors from the log (#52401)
fix - c267f54bc3Update regex to better match ng-templates (#52529)

platform-browser

CommitDescription
feat - c340d6e044enable removal of styles on component destroy by default (#51571)
feat - c5daa6ce77expose EventManagerPlugin in the public API. (#49969)
fix - 5b375d106fFire Animations events when using async animations. (#52087)
fix - 65786b2b96prevent duplicate stylesheets from being created (#52019)
fix - 75d610d420set animation properties when using async animations. (#52087)
perf - 3c0577f991disable styles of removed components instead of removing (#51808)
perf - c9cde3ab10only append style element on creation (#52237)
refactor - dbc14eb41dremove withNoDomReuse function (#52057)

platform-server

CommitDescription
fix - 0c66e2424cresolve relative requests URL (#52326)

router

CommitDescription
feat - 1da28f4825Add callback to execute when a view transition is created (#52002)
feat - 73e4bf2ed2Add feature to support the View Transitions API (#51314)
feat - 86e91463afAdd option to skip the first view transition (#51825)
fix - ce1b915868Allow redirects after an absolute redirect (#51731)
fix - 37df395be0children of routes with loadComponent should not inherit parent data by default (#52114)
fix - 4dce8766f8Ensure newly resolved data is inherited by child routes (#52167)
fix - f464e39364Ensure title observable gets latest values (#51561)
fix - b2aff43621Remove urlHandlingStrategy from public Router properties (#51631)
fix - c62e680098Remove deprecated Router properties (#51502)
fix - 3c6258c85bRemove deprecated setupTestingRouter function (#51826)
fix - 0b3e6a41d0Remove malformedUriErrorHandler from ExtraOptions (#51745)
fix - c03baed854use DOCUMENT token instead of document directly in view transitions (#51814)

Breaking Changes

  • breaking

    Node.js v16 support has been removed and the minimum support version has been bumped to 18.13.0.

    Node.js v16 is planned to be End-of-Life on 2023-09-11. Angular will stop supporting Node.js v16 in Angular v17. For Node.js release schedule details, please see: github.com/nodejs/release

common

  • breaking
  • breaking

    The NgSwitch directive now defaults to the === equality operator,
    migrating from the previously used ==. NgSwitch expressions and / or
    individual condition values need adjusting to this stricter equality
    check. The added warning message should help pinpointing NgSwitch
    usages where adjustements are needed.

core

  • breaking

    Angular now required zone.js version ~0.14.0

  • breaking

    Versions of TypeScript older than 5.2 are no longer supported.

  • breaking

    The mutate method was removed from the WritableSignal interface and completely
    dropped from the public API surface. As an alternative please use the update method and
    make immutable changes to the object.

    Example before:

    items.mutate(itemsArray => itemsArray.push(newItem));

    Example after:

    items.update(itemsArray => [itemsArray, …newItem]);
  • breaking

    The mutate method was removed from the WritableSignal interface and completely
    dropped from the public API surface. As an alternative please use the update method and
    make immutable changes to the object.

    Example before:

    items.mutate(itemsArray => itemsArray.push(newItem));

    Example after:

    items.update(itemsArray => [itemsArray, …newItem]);
  • breaking

    OnPush components that are created dynamically now
    only have their host bindings refreshed and ngDoCheck run during change
    detection if they are dirty.
    Previously, a bug in the change detection would result in the OnPush
    configuration of dynamically created components to be ignored when
    executing host bindings and the ngDoCheck function. This is
    rarely encountered but can happen if code has a handle on the
    ComponentRef instance and updates values read in the OnPush
    component template without then calling either markForCheck or
    detectChanges on that component's ChangeDetectorRef.

platform-browser

  • breaking

    REMOVE_STYLES_ON_COMPONENT_DESTROY default value is now true. This causes CSS of components to be removed from the DOM when destroyed. You retain the previous behaviour by providing the REMOVE_STYLES_ON_COMPONENT_DESTROY injection token.

    import {REMOVE_STYLES_ON_COMPONENT_DESTROY} from '@angular/platform-browser';
    ...
    providers: [{
      provide: REMOVE_STYLES_ON_COMPONENT_DESTROY,
      useValue: false,
    }]
  • breaking

    The withNoDomReuse() function was removed from the public API. If you need to disable hydration, you can exclude the provideClientHydration() call from provider list in your application (which would disable hydration features for the entire application) or use ngSkipHydration attribute to disable hydration for particular components. See this guide for additional information: angular.io/guide/hydration.

router

  • breaking

    Absolute redirects no longer prevent further redirects.
    Route configurations may need to be adjusted to prevent infinite
    redirects where additional redirects were previously ignored after an
    absolute redirect occurred.

  • breaking

    Routes with loadComponent would incorrectly cause
    child routes to inherit their data by default. The default
    paramsInheritanceStrategy is emptyOnly. If parent data should be
    inherited in child routes, this should be manually set to always.

  • breaking

    urlHandlingStrategy has been removed from the Router public API.
    This should instead be configured through the provideRouter or RouterModule.forRoot APIs.

  • breaking

    The following Router properties have been removed from
    the public API:

    • canceledNavigationResolution

    • paramsInheritanceStrategy

    • titleStrategy

    • urlUpdateStrategy

    • malformedUriErrorHandler

    These should instead be configured through the provideRouter or
    RouterModule.forRoot APIs.

  • breaking

    The setupTestingRouter function has been removed. Use
    RouterModule.forRoot or provideRouter to setup the Router for
    tests instead.

  • breaking

    malformedUriErrorHandler is no longer available in
    the RouterModule.forRoot options. URL parsing errors should instead be
    handled in the UrlSerializer.parse method.

zone.js

  • breaking

    Deep and legacy dist/ imports like zone.js/bundles/zone-testing.js and zone.js/dist/zone are no longer allowed. zone-testing-bundle and zone-testing-node-bundle are also no longer part of the package.

    The proper way to import zone.js and zone.js/testing is:

    import 'zone.js';
    import 'zone.js/testing';

Deprecations

animations

  • deprecated

    The AnimationDriver.NOOP symbol is deprecated, use NoopAnimationDriver instead.

core

  • deprecated

    ChangeDetectorRef.checkNoChanges is deprecated.

    Test code should use ComponentFixture instead of ChangeDetectorRef.
    Application code should not call ChangeDetectorRef.checkNoChanges directly.

  • deprecated

    Swapping out the context object for EmbeddedViewRef
    is no longer supported. Support for this was introduced with v12.0.0, but
    this pattern is rarely used. There is no replacement, but you can use
    simple assignments in most cases, or Object.assign , or alternatively still replace the full object by using a Proxy(seeNgTemplateOutlet`
    as an example).

    Also adds a warning if the deprecated

  • deprecated

    NgProbeToken

    The NgProbeToken is not used internally since the transition from View Engine to Ivy. The token has no utility and can be removed from applications and libraries.