(Let's dive into Typescript and Angular2, shall we?)
Having primarily coded in Symfony2 with annotations, I found it convenient to configure entity mapping, routing, and other features using yaml, xml, or plain PHP. This flexibility was great for creating code that could stand alone as a library or easily integrate with Symfony.
Then, when I started exploring Angular2 and TypeScript, I discovered the use of decorators for everything - component metadata, services, you name it.
But what if I want to prepare a class that can be reused with different frameworks? For example, when creating a service for my app, it needs to be marked as injectable in Angular2. Is there a way to add a decorator separately so that I can inject an external class into Angular2's DI system?