5.0.0-alpha+3
angular
5.0.0-alpha+3
New features
-
Provideris now soft-deprecated (not preferred), and new more-typed
classes exist:ClassProvider,ExistingProvider,FactoryProvider, and
ValueProvider. Each also has a.forTokennamed constructor that infers
theProvider<T>'sTvalue from the providedOpaqueToken<T>'sT.
This is meant to help with the move to strong mode and DDC, and is now the
preferred way to configure dependency injection. -
Any variation of
multi: truewhen configuring dependency injection is now
soft-deprecated (not preferred), and theMultiTokenclass has been added.
AMultiToken<T>now represents anOpaqueToken<T>wheremulti: trueis
implicitly alwaystrue:
const usPresidents = const MultiToken<String>('usPresidents');
@Component(
selector: 'presidents-list',
providers: const [
const ValueProvider.forToken(usPresidents, 'George Washington'),
const ValueProvider.forToken(usPresidents, 'Abraham Lincoln'),
],
)
class PresidentsListComponent {
// Will be ['George Washington', 'Abraham Lincoln'].
final List<String> items;
PresidentsListComponent(@Inject(usPresidents) this.items);
}- We are starting to support the new build system at
dart-lang/build. More
information and documentation will be included in a future release, but we
expect to drop support forpub serve/buildby 5.0.0 final.
Breaking changes
- Dartium is no longer supported. All development of your AngularDart
applications is now required to be in DDC. With incoming language
and library changes this would have been required regardless, but we expect
to have faster build tools available (instead ofpub serve) soon.
Bug fixes
-
Fixed a bug where
ReflectiveInjectorwould return anObjectinstead of
throwingArgumentErrorwhen resolving an@Injectable()service that
injected a dependency with one or more annotations (i.e.@Inject(...)). -
Fixed a bug where
DatePipedidn't formatmillisecondsSinceEpochin the
local time zone (consistent with how it formatsDateTime).
angular_router
2.0.0-alpha+3
New features
-
Added the
CanNavigatelifecycle interface. This is similar to
CanDeactivate, and preferred when the nextRouterStateisn't necessary
to determine whether the router may navigate. -
Added
reloadfield toNavigationParamswhich can be used to force
navigation, even if the path and other navigation parameters are unchanged. -
Added
replacefield toNavigationParamswhich can be used to replace the
current history entry on navigation instead of creating a new one.
Breaking changes
- Removed
hashCodeandoperator ==overrides fromRouteDefinitionand
RouterState, as these can't be removed by tree-shaking.
Bug fixes
- Upon destruction,
RouterOutletwill now properly destroy all of its cached
components, instead of only destroying the active one.
angular_forms
1.0.1-alpha+3
- Some documentation updates.
- Dartium is no longer supported.
angular_test
2.0.0-alpha+1
- Added support for
build.yaml.
angular_compiler
0.4.0-alpha+3
- Added support for recognizing the
MultiTokentype.
angular_ast
0.4.1
Bug fixes
- Un-escape HTML characters, such as
<,∑, or∑, when they
appear in text. Note, we do not do any un-escaping when these characters
appear inside elements.