How to share code between a regular Angular component and an Angular Element?

Lets assume that I'll use nx to be able to share libraries between different sites in a mono repo. I have two sites:

  • Site 1: Angular App
  • Site 2: Static Site

Site 1 has a helloWorld Angular Component. On site 2 I want to have the same helloWorld component, but as an Angular Element.

Is there a way to share code between the two? Or, nest the regular component inside the element?



from Recent Questions - Stack Overflow https://ift.tt/37GPnvQ
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)