You are right, there is no (yet?) Implementation of this method in RxJs 5 beta, which is currently used in Angular 2: Migration from RxJs 4 to 5 . But itβs actually not clear whether you really need it.
If you use typescript, you can see about writing decorators here . Alternatively, you can explore Angular sources, the starting point is the module /@angular/core/src/metadata/directives.ts. You can see how the Angular team implemented the @Input () decorator and figured out how to do this in your case, which sounds pretty similar to me.
Alexander Leonov
source share