fix(injectable): add missing @Injectables annotations

Closes #2173
This commit is contained in:
Tobias Bosch 2015-05-27 09:04:34 -07:00
parent c6335c128e
commit 0c7f05f56a
2 changed files with 4 additions and 1 deletions

View File

@ -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<viewModule.AppProtoView, List<viewModule.AppView>>;

View File

@ -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;