export class ViewRef
export class ViewRef
exported from angular2/core defined in angular2/src/core/linker/view_ref.ts (line 32)
Represents an Angular View.
A View is a fundamental building block of the application UI. It is the smallest grouping of Elements which are created and destroyed together.
Properties of elements in a View can change, but the structure (number and order) of elements in
a View cannot. Changing the structure of Elements can only be done by inserting, moving or
removing nested Views via a ViewContainerRef
. Each View can contain many View Containers.
Example
Given this template...
ProtoViewRef
s:
Outer ProtoViewRef
:
Inner ProtoViewRef
:
Notice that the original template is broken down into two separate ProtoViewRef
s.
The outer/inner ProtoViewRef
s are then assembled into views like so:
Members
setLocal(variableName: string, value: any) : void
setLocal(variableName: string, value: any) : void
Sets value
of local variable called variableName
in this View.
changeDetectorRef : ChangeDetectorRef
changeDetectorRef : ChangeDetectorRef
Not Yet Documented