title: Angular App dynamically load plugin without recompile
body: <p>I'm trying to develop the frontend of my Web Api (NET CORE) pluginable application. I would like to use Angular 9 but im not an expert in angular.</p>
  
  <p>My backend was designed to be extensible and at startup it watches in a specified folder and if exists one or more dll files that contains logic to extend base application (like a plugin) it loads them.
  I want to use a similar approach in the frontend. I tried different solutions and read a lot of articles but is difficult to find somebody that want to import unknown plugin at compile time.</p>
  
  <p>I tried lazy modules (starting from this: <a href="https://www.mokkapps.de/blog/manually-lazy-load-modules-and-components-in-angular/" rel="noreferrer">https://www.mokkapps.de/blog/manually-lazy-load-modules-and-components-in-angular/</a>) that would be perfect but using this I have to know implemented plugin (modules) before compiling my angular app because if I want to use the modules I have to use Import function in my main app.</p>
  
  <p>So I searched more and after the article <a href="https://stackoverflow.com/questions/50149016/load-new-modules-dynamically-in-run-time-with-angular-cli-angular-5">Load new modules dynamically in run-time with Angular CLI &amp; Angular 5</a> I tried System.Js approach but I can't find a working solution for angular 9.</p>
  
  <p>I'am pretty sure that I am not the only one that would create a pluginable Angular app that load plugins without recompile main app.</p>
  
  <p>I need some suggest to the right approach to follow or a working example of an angular app that use plugins architecture.</p>