I just want to know that, is it possible to create pluggable component in Angular 2 with Typescript for JavaScript project? I know that any JavaScript code is valid Typescript code, but what if you have already developed your JavaScript(ES5) project, and you want certain modules like Drag-Drop Module or Form Validator Module or Multiple Choice Questions(MCQ) Module (Developed in Angular 2 TS) for existing project?
I really don't know whether Angular 2(Typescript) is really suitable to such kind of pluggable module creation or not? OR is it like that, Angular 2 is used for creating SPAs only?
Since Angular 2 components have their own life-cycle and JavaScript functions executes sequentially. then how the co-ordination possible?
If you know any kind of example(if it is possible) the please help me out? I'll really appreciate your responses!! (I tried on the net but didn't get any proper solution)