feat(di): Add the @Injectable annotation to Compiler

Mark `Compiler` and its dependencies as available to the `Injector`.
This commit is contained in:
Tim Blasi
2015-03-16 14:44:14 -07:00
committed by Misko Hevery
parent b656f63430
commit 57723e1354
18 changed files with 40 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import {ABSTRACT, CONST, normalizeBlank, isPresent} from 'angular2/src/facade/lang';
import {ListWrapper, List} from 'angular2/src/facade/collection';
import {Injectable} from 'angular2/di';
// type StringMap = {[idx: string]: string};
@ -10,7 +11,7 @@ import {ListWrapper, List} from 'angular2/src/facade/collection';
* @publicModule angular2/angular2
*/
@ABSTRACT()
export class Directive {
export class Directive extends Injectable {
/**
* The CSS selector that triggers the instantiation of a directive.
*
@ -189,6 +190,7 @@ export class Directive {
lifecycle:List
}={})
{
super();
this.selector = selector;
this.bind = bind;
this.events = events;