6.0.0-alpha+1
angular
6.0.0-alpha+1
New features
-
Added
ComponentRef.update()
. This method should be used to apply changes
to a component and then trigger change detection. Before this, change
detection and lifecycles would not always follow Angular's specifications
when imperatively loading a component, especialy for those using the OnPush
change detection strategy.final componentRef = componentFactory(); componentRef.update((component) { component.input = newValue; });
-
Added
@changeDetectionLink
topackage:angular/experimental.dart
.This annotation allows a component that imperatively loads another component
from a user-provided factory to adopt the OnPush change detection strategy,
without dictacting the change detection strategy of the component created
from the factory. This allows such a component to be used in both Default
and OnPush apps.An annotated component will serve as a link between an ancestor and an
imperatively loaded descendant that both use the Default change detection
strategy. This link is used to change detect the descendant anytime the
ancestor is change detected, thus honoring its Default change detection
contract. Without this annotation, the descendant would be skipped anytime
the annotated OnPush component had not been marked to be checked.For more details, see this annotation's documentation.
angular_test
2.4.0
New Features
-
Added an optional named parameter,
maxIterations
, to
FakeTimeNgZoneStabilizer
's constructor. If not specified 10 maximum loops
are attempted toelapse
pending timers. In advanced use cases, a test may
configure a higher threshold:NgZoneStabilizer allow100InsteadOf10() { return FakeTimeNgZoneStabilizer(timerZone, ngZone, maxIterations: 100); }
Bug Fixes
NgTestFixture.update()
now delegates toComponentRef.update()
, which
automatically callsmarkForCheck()
. Previously, anOnPush
component
under test might not have been properly updated.
angular_forms
2.1.4
- Maintenance release to support Angular 6.0-alpha+1.
angular_router
2.0.0-alpha+24
- Maintenance release to support Angular 6.0-alpha+1.
angular_compiler
0.4.5
-
The InjectorReader now fails with an explicit error if types are used inside
a ValueProvider object. Previously, using types in ValueProviders would
crash the AngularDart compiler.Instead of a ValueProvider, use a FactoryProvider for complicated objects,
such as those that contain types. -
Removed the
i18n
compiler flag that was previously used to opt-in to
internationalization in templates before the feature had stabilized. -
Added support for a command-line flag,
allowed_typedefs_as_di_token
. This
is intended to be used as a transitional flag to ban using atypedef
as a
DI token (which has non-predictable properties in Dart 2). -
Added
$ChangeDetectionLink
, a type checker for matching the experimental
@changeDetectionLink
annotation.
angular_ast
0.5.11
- Maintenance release to support Dart 2.5 dev.
angular_analyzer_plugin
1.0.0-alpha+1
- Maintenance release to support Angular 6.0-alpha+1.