Angular2: single service for multiple apps

Angular2 is great for SPA (Single Page Application), but sometime you need to use multiple apps in a page because you just want to add some Angular “widgets” apps. If you want to use shared data, you can use a service class, but the dependency injection in this case is not easy as it looks.