29 lines
572 B
JavaScript
Raw Normal View History

import {CONST} from 'angular2/src/facade/lang';
import {DependencyAnnotation} from 'angular2/di';
/**
* The directive can only be injected from the current element
* or from its parent.
2015-03-19 16:56:45 +00:00
*
* @publicModule angular2/annotations
*/
export class Parent extends DependencyAnnotation {
@CONST()
constructor() {
super();
}
}
/**
* The directive can only be injected from the current element
* or from its ancestor.
2015-03-19 16:56:45 +00:00
*
* @publicModule angular2/annotations
*/
export class Ancestor extends DependencyAnnotation {
@CONST()
constructor() {
super();
}
}