angular-docs-cn/modules/angular2/test/core/compiler
Tobias Bosch b1df54501a feat(compiler): attach components and project light dom during compilation.
Closes #2529

BREAKING CHANGES:
- shadow dom emulation no longer
  supports the `<content>` tag. Use the new `<ng-content>` instead
  (works with all shadow dom strategies).
- removed `DomRenderer.setViewRootNodes` and `AppViewManager.getComponentView`
  -> use `DomRenderer.getNativeElementSync(elementRef)` and change shadow dom directly
- the `Renderer` interface has changed:
  * `createView` now also has to support sub views
  * the notion of a container has been removed. Instead, the renderer has
    to implement methods to attach views next to elements or other views.
  * a RenderView now contains multiple RenderFragments. Fragments
    are used to move DOM nodes around.

Internal changes / design changes:
- Introduce notion of view fragments on render side
- DomProtoViews and DomViews on render side are merged,
  AppProtoViews are not merged, AppViews are partially merged
  (they share arrays with the other merged AppViews but we keep
  individual AppView instances for now).
- DomProtoViews always have a `<template>` element as root
  * needed for storing subviews
  * we have less chunks of DOM to clone now
- remove fake ElementBinder / Bound element for root text bindings
  and model them explicitly. This removes a lot of special cases we had!
- AppView shares data with nested component views
- some methods in AppViewManager (create, hydrate, dehydrate) are iterative now
  * now possible as we have all child AppViews / ElementRefs already in an array!
2015-07-15 20:23:27 -07:00
..
compiler_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
component_url_mapper_spec.ts refactor(core): ts’ify tests 2015-05-26 17:01:31 -07:00
directive_lifecycle_spec.dart refactor(LifecycleEvent): change from onInit to Lifecycle.onInit 2015-07-14 16:51:44 -07:00
directive_lifecycle_spec.ts refactor(LifecycleEvent): change from onInit to Lifecycle.onInit 2015-07-14 16:51:44 -07:00
directive_metadata_reader_spec.ts refactor(core): ts’ify tests 2015-05-26 17:01:31 -07:00
dynamic_component_loader_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
element_injector_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
integration_dart_spec.dart feat(change_detection): added support for ObservableList from package:observe 2015-07-15 17:06:42 -07:00
integration_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
projection_integration_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
proto_view_factory_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
query_integration_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
query_list_spec.ts feat(query): initial implementation of view query. 2015-07-13 14:44:55 -07:00
view_container_ref_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
view_manager_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
view_manager_utils_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
view_pool_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00