
Also correct the transpile to ES6 Also support generics correctly All patches are hooked in via `/tools/transpiler/index.js` https://github.com/google/traceur-compiler/issues/1700 https://github.com/google/traceur-compiler/issues/1699 https://github.com/google/traceur-compiler/issues/1708 https://github.com/google/traceur-compiler/issues/1625 https://github.com/google/traceur-compiler/issues/1706
25 lines
490 B
JavaScript
25 lines
490 B
JavaScript
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.
|
|
*/
|
|
export class Parent extends DependencyAnnotation {
|
|
@CONST()
|
|
constructor() {
|
|
super();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* The directive can only be injected from the current element
|
|
* or from its ancestor.
|
|
*/
|
|
export class Ancestor extends DependencyAnnotation {
|
|
@CONST()
|
|
constructor() {
|
|
super();
|
|
}
|
|
}
|