v21.2.0
📦 angularView on GitHub →
✨ 20 features🐛 16 fixes🔧 7 symbols
Summary
This release introduces several new features across common, compiler, core, and forms modules, including support for TypeScript 6 and improvements to signal-based forms and animation handling. Numerous bug fixes address issues related to compiler optimizations, diagnostics, and form error handling.
✨ New Features
- Added an 'outlet' injector option for ngTemplateOutlet.
- Location strategies now manage trailing slash on write.
- Support for height in ImageLoaderConfig and built-in loaders.
- Added support for the instanceof binary operator in the compiler.
- Implemented exhaustive checks for switch blocks in the compiler.
- Support for AstVisitor.visitEmptyExpr() in the compiler.
- Added ChangeDetectionStrategy.Eager alias for Default in core.
- Added host node to DeferBlockData.
- Added support for nested animations.
- Added support for TypeScript 6.
- Introduced resource composition via snapshots.
- Support for arrow functions in expressions.
- Added field parameter to submit action and onInvalid in forms.
- Added form directive.
- Added parsing support to native inputs.
- Added passing focus options to form field.
- Allow setting submit options at form-level.
- Introduce parse errors in signal forms.
- Introduce SignalFormControl for Reactive Forms compatibility.
- Support binding null to number input.
🐛 Bug Fixes
- Optimized away unnecessary restore/reset view calls in the compiler.
- Fixed variable counter visiting some expressions twice in the compiler.
- Attached source spans to object literal keys in TCB.
- Fixed support for nested component declaration.
- Updated diagnostic to flag no-op arrow functions in listeners.
- Correctly handle SkipSelf when resolving from embedded view injector.
- Prevented animated element duplication with dynamic components in zoneless mode.
- Removed note to skip arrow functions in best practices.
- Cleared parse errors when model updates.
- Preserved custom-control focus context in signal forms.
- Preserved parse errors when parse returns value.
- Simplified design of parse errors.
- Sorted error summary by DOM order.
- Supported custom controls as host directives.
- Used consistent error format returned from parse.
- Warned when showing hidden field state.