Render Angular component outside the main app

前端 未结 2 1457
挽巷
挽巷 2020-12-19 04:20

I have an angular app, it has a bundle and a piece of HTML that contains a root selector

 

where the app is bootstr

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-19 05:08

    You can bootstrap multiple elements. You can inject a shared service to be able to communicate between components of different Angular2 applications (on the same page).

    How to dynamically create bootstrap modals as Angular2 components?

提交回复
热议问题