how to embed an angular app into another app?

前端 未结 3 1655
走了就别回头了
走了就别回头了 2020-12-02 11:49

My team develop an angular 5 application that has been in production for a while, but we\'ve been tasked recently with making the app work in other 3 sites the company owns.

3条回答
  •  一生所求
    2020-12-02 12:10

    I think the solution of your problem resides in Angular Elements. It is pretty cool and provided by angular team.

    Angular Elements lets you package your Angular components as custom web elements, which are part of the web components set of web platform APIs. Web components are technologies to help create reusable, encapsulated elements. Right now, that includes the shadow DOM, HTML templates, HTML imports, and custom elements. The custom elements technology powers Angular Elements.

    Here are some reference links from which you can learn more about Angular Elements.

    https://angular.io/guide/elements

    https://www.telerik.com/blogs/getting-started-with-angular-elements

    Thanks!

提交回复
热议问题