'How to use an Angular and Node project as an Angular element?

I have an Angular Application which has Node js as it's backend. The way I currently run it is building the angular app(ng build) to have the compiled files in a dist folder and then running the node server and launching the app on the browser at Node's port. How do I use this project as an Angular element? I want to be able to embed this app in another project(not necessarily angular).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source