Angular 2 Iframe On Website


Answer :

You could run an angular app and load it into iframe. In your app, you should create a route where only one component will be visible. Then you can load it into iframe in the other website.

Example: your component would be available at http://localhost:4200/components/card

and then on your website, you can load it like this: <iframe src="http://localhost:4200/components/card></iframe>


Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?