I'm looking for a way to write plugin-based Angular application using Visual Studio and ASP .NET Core SPA project template.
I'm newbie to Angular, and I still reading the docs.
It looks like router + lazy loaded modules is what I need. Main application doesn't need to refer these modules directly, and only appropriate routes configuration is required.
Also, some web search shows, that router can be reconfigured dynamically. E.g. main app calls my API, which returns available routes, built from plugins list somehow.
The question is how lazy loaded angular modules will fit VS project system. All Angular + VS samples I found are using single VS project.
But I need something similar to C#/.NET. For example, typical plugin-based C# app consists of:
- common project with plugin contract
IPlugin
; - host project with some
PluginHost
, which knows aboutIPlugin
and can load its implementations; - a number of projects with
IPlugin
implementations.
That is, someone can develop his own implementation, copy resulting assembly into app directory, re-run app, and get new functional.
Is there any way to achieve this using Angular and Visual Studio (not VS Code)?