2015-02-02 16:25:34 -08:00
|
|
|
import {CONST} from 'facade/src/lang';
|
2014-10-14 16:00:35 -04:00
|
|
|
import {DependencyAnnotation} from 'di/di';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The directive can only be injected from the current element
|
|
|
|
* or from its parent.
|
|
|
|
*/
|
|
|
|
export class Parent extends DependencyAnnotation {
|
|
|
|
@CONST()
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The directive can only be injected from the current element
|
|
|
|
* or from its ancestor.
|
|
|
|
*/
|
|
|
|
export class Ancestor extends DependencyAnnotation {
|
|
|
|
@CONST()
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
}
|