I recently started using ViewChildren and ContentChildren in Angular 2, but had now been wondering if these could be used in ES6 without TypeScript annotations as well.
The TypeScript syntax, as per the docs, is as follows:
@ViewChild(ItemDirective) viewChild: ItemDirective;
Alternatively, as per here:
// myVideo == #my-video
@ViewChild('myVideo') myVideo: any;
Now, the corresponding source has Metadata classes for ViewChild and co., which I recall could be used to add some of the other annotations in plain JS. So I'm thinking it should be doable, but I'm not really sure how in this case. Would anyone be able to shed some light on this?