refactor(views): split ViewManager/ViewContainerRef.createView
into 2 methods
BREAKING CHANGES: `ViewManager.createView` / `ViewContainerRef.create` have been split into 2 methods: - `createHostView` which takes dynamically created bindings - `createEmbeddedView` which takes the newly introduced `TemplateRef` The new type `TemplateRef` is the combination of a `ProtoViewRef` and and `ElementRef` from the same place. Use `TemplateRef` when working with embedded views in `ng-if`, `ng-for`, ... instead of `ProtoViewRef`. Also, `ProtoViewRef` is no more injectable, but `TemplateRef` is. First part of #1989 to clean up manual content projection. Closes #3114
This commit is contained in:
@ -18,6 +18,7 @@ export {AppViewManager} from 'angular2/src/core/compiler/view_manager';
|
||||
export {IQueryList} from 'angular2/src/core/compiler/interface_query';
|
||||
export {QueryList} from 'angular2/src/core/compiler/query_list';
|
||||
export {ElementRef} from 'angular2/src/core/compiler/element_ref';
|
||||
export {TemplateRef} from 'angular2/src/core/compiler/template_ref';
|
||||
export {RenderElementRef} from 'angular2/src/render/api';
|
||||
export {ViewRef, ProtoViewRef} from 'angular2/src/core/compiler/view_ref';
|
||||
export {ViewContainerRef} from 'angular2/src/core/compiler/view_container_ref';
|
||||
|
Reference in New Issue
Block a user