Change8

21.0.0-next.8

📦 angularView on GitHub →
5 features🐛 7 fixes1 deprecations🔧 8 symbols

Summary

This release introduces several enhancements to @defer triggers and HttpResource, alongside critical bug fixes for animations and form control state propagation. It also includes a new migration to help users transition away from the deprecated RouterTestingModule.

Migration Steps

  1. Run the provided migration tool to replace deprecated RouterTestingModule usage with provideRouter or similar alternatives.

✨ New Features

  • Added diagnostic for misconfigured @defer triggers in compiler-cli.
  • Allow passing application providers in bootstrapModule options.
  • Support IntersectionObserver options in viewport triggers for @defer.
  • Added referrerPolicy option to HttpResource.
  • Added automated migration for deprecated RouterTestingModule.

🐛 Bug Fixes

  • Capture metadata for undecorated fields in compiler-cli.
  • Fixed control recognition when input has a directive injecting ViewContainerRef.
  • Fixed regression in animate.leave function bindings.
  • Prevented early style pruning with leave animations.
  • Ensured common field states (min/max, minLength/maxLength) are propagated to form controls.
  • Fixed input migration when used more than once in a method.
  • Updated scroll restoration to use instant scroll behavior for traversals.

🔧 Affected Symbols

@deferbootstrapModuleIntersectionObserverViewContainerRefanimate.leaveHttpResourceRouterTestingModulecompiler-cli

⚡ Deprecations

  • The RouterTestingModule is deprecated and a migration has been added to assist with its removal.