refactor(ivy): move LView.template and component templates to TView (#24300)

PR Close #24300
This commit is contained in:
Kara Erickson
2018-06-04 13:07:09 -07:00
committed by Victor Berchet
parent d814eaad95
commit 57eacf4b5a
5 changed files with 39 additions and 46 deletions

View File

@ -126,11 +126,6 @@ export interface LView {
*/
tView: TView;
/**
* For dynamically inserted views, the template function to refresh the view.
*/
template: ComponentTemplate<{}>|null;
/**
* - For embedded views, the context with which to render the template.
* - For root view of the root component the context contains change detection data.
@ -212,6 +207,12 @@ export interface TView {
*/
readonly id: number;
/**
* The template function used to refresh the view of dynamically created views
* and components. Will be null for inline views.
*/
template: ComponentTemplate<{}>|null;
/**
* Pointer to the `TNode` that represents the root of the view.
*