Angular2のBeta.1バージョンがリリースされました。
2.0.0-beta.1 catamorphic-involution (2016-01-08)
Bug Fixes
- benchpress: fix flake (9d28147), closes #6161
- CHANGELOG: typo (d116861), closes #6075 #6078
- code size: revert previous devMode change to restore size targets (c47d85b)
- core: IE only supports parentNode (630d931), closes #5994
- docs: fix an import in TOOLS_DART.md (3524946), closes #5923
- forms: fix SelectControlValueAccessor not to call onChange twice (b44d36c), closes #5969
- router: correctly sort route matches with children by specificity (b2bc50d), closes #5848 #6011
- router: preserve specificity for redirects (a038bb9), closes #5933
- TemplateParser: do not match on attrs that are bindings (9a70f1a), closes #5914
Features
- core: improve NoAnnotationError message (197cf09), closes #4866 #5927
- core: improve stringify for dart to handle closures (e67ebb7)
- core: speed up view creation via code gen for view factories. (7ae23ad), closes #5993
- router: support links with just auxiliary routes (2a2f9a9), closes #5930
Performance Improvements
BREAKING CHANGES
- Platform pipes can only contain types and arrays of types,
but no bindings any more. - When using transformers, platform pipes need to be specified explicitly
in the pubspec.yaml via the new config option
platform_pipes
. Compiler.compileInHost
now returns aHostViewFactoryRef
- Component view is not yet created when component constructor is called.
-> useonInit
lifecycle callback to access the view of a component ViewRef#setLocal
has been moved to new typeEmbeddedViewRef
internalView
is gone, useEmbeddedViewRef.rootNodes
to access
the root nodes of an embedded viewrenderer.setElementProperty
,..setElementStyle
,..setElementAttribute
now
take a native element instead of an ElementRefRenderer
interface now operates on plain native nodes,
instead ofRenderElementRef
s orRenderViewRef
s
いくつかのバグフィックスの他に、エラーメッセージの改善やRouterの機能追加がありますが、メインはView生成機構の破壊的変更ですね。
この件に関しては過去の記事で取り上げています。
RouterはAuxRouteについてもrouterLinkで<a [routerLink]="['/', ['Modal']]">open modal</a>
のようにリンクを生成できるようになりました。#5930