| Start |
|---|
| Via Dependency Injection Instead of invoking the Angular’s bootstrap code directly, wrap the bootstrap code into a function and export the function. This function can also accept parameters. Then, in any services or components we can inject the “legacy model” and gain access to it. Require the app and then run it. |
Read Article
https://develop.horje.com/learn/1434/reference