This is my first time trying to dynamically inject components and so far, I've been successful. However, there's an error in Typescript that's bothering me (I don't like having errors in my code).
If you want to check out the app, here's the link: https://stackblitz.com/edit/angular-vrtr51?embed=1&file=src/app/app.component.ts
My aim was to create a service that can provide any component I need so that I can inject it from anywhere (especially for a widget-based website).
However, I'm seeing this error message in the console: error TS2339: Property 'data' does not exist on type '{}'.
You can find this error in app.component.ts at line 35.
The code is functioning properly, but I'd like to understand why this error is occurring.
Thank you!