Merge pull request #1909 from angular/view-ref-return-types
Update view_ref.js
This commit is contained in:
commit
a38a0d6f87
|
@ -3,12 +3,12 @@ import * as viewModule from './view';
|
||||||
import {RenderViewRef} from 'angular2/src/render/api';
|
import {RenderViewRef} from 'angular2/src/render/api';
|
||||||
|
|
||||||
// This is a workaround for privacy in Dart as we don't have library parts
|
// This is a workaround for privacy in Dart as we don't have library parts
|
||||||
export function internalView(viewRef:ViewRef) {
|
export function internalView(viewRef:ViewRef):viewModule.AppView {
|
||||||
return viewRef._view;
|
return viewRef._view;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is a workaround for privacy in Dart as we don't have library parts
|
// This is a workaround for privacy in Dart as we don't have library parts
|
||||||
export function internalProtoView(protoViewRef:ProtoViewRef) {
|
export function internalProtoView(protoViewRef:ProtoViewRef):viewModule.AppProtoView {
|
||||||
return isPresent(protoViewRef) ? protoViewRef._protoView : null;
|
return isPresent(protoViewRef) ? protoViewRef._protoView : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ export class ViewRef {
|
||||||
return this._view.render;
|
return this._view.render;
|
||||||
}
|
}
|
||||||
|
|
||||||
setLocal(contextName: string, value:any) {
|
setLocal(contextName:string, value:any):void {
|
||||||
this._view.setLocal(contextName, value);
|
this._view.setLocal(contextName, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue