docs: annotations

This commit is contained in:
Misko Hevery
2015-03-17 23:29:27 +00:00
parent 08b56e1c53
commit 81312e4b3e
5 changed files with 402 additions and 12 deletions

View File

@ -587,6 +587,7 @@ export class ElementInjector extends TreeNode {
_getPreBuiltObjectByKeyId(keyId:int) {
var staticKeys = StaticKeys.instance();
// TODO: View should not be injectable. Remove it.
if (keyId === staticKeys.viewId) return this._preBuiltObjects.view;
if (keyId === staticKeys.ngElementId) return this._preBuiltObjects.element;
if (keyId === staticKeys.viewContainerId) return this._preBuiltObjects.viewContainer;