From 0c7f05f56ac425fbf20013a55b749b572277427a Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Wed, 27 May 2015 09:04:34 -0700 Subject: [PATCH] fix(injectable): add missing @Injectables annotations Closes #2173 --- modules/angular2/src/core/compiler/view_pool.ts | 3 ++- .../src/render/dom/shadow_dom/native_shadow_dom_strategy.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/angular2/src/core/compiler/view_pool.ts b/modules/angular2/src/core/compiler/view_pool.ts index 4d1120073b..94c384fa5d 100644 --- a/modules/angular2/src/core/compiler/view_pool.ts +++ b/modules/angular2/src/core/compiler/view_pool.ts @@ -1,4 +1,4 @@ -import {Inject} from 'angular2/di'; +import {Inject, Injectable} from 'angular2/di'; import {ListWrapper, MapWrapper, Map, List} from 'angular2/src/facade/collection'; import {isPresent, isBlank} from 'angular2/src/facade/lang'; @@ -9,6 +9,7 @@ import * as viewModule from './view'; // TODO(tbosch): Make this an OpaqueToken as soon as our transpiler supports this! export const APP_VIEW_POOL_CAPACITY = 'AppViewPool.viewPoolCapacity'; +@Injectable() export class AppViewPool { _poolCapacityPerProtoView: number; _pooledViewsPerProtoView: Map>; diff --git a/modules/angular2/src/render/dom/shadow_dom/native_shadow_dom_strategy.ts b/modules/angular2/src/render/dom/shadow_dom/native_shadow_dom_strategy.ts index 5e274e132c..28cd48dd83 100644 --- a/modules/angular2/src/render/dom/shadow_dom/native_shadow_dom_strategy.ts +++ b/modules/angular2/src/render/dom/shadow_dom/native_shadow_dom_strategy.ts @@ -1,4 +1,5 @@ import {Promise} from 'angular2/src/facade/async'; +import {Injectable} from 'angular2/di'; import {DOM} from 'angular2/src/dom/dom_adapter'; @@ -11,6 +12,7 @@ import {ShadowDomStrategy} from './shadow_dom_strategy'; * The templates for the component are inserted in a Shadow Root created on the component element. * Hence they are strictly isolated. */ +@Injectable() export class NativeShadowDomStrategy extends ShadowDomStrategy { styleUrlResolver: StyleUrlResolver;