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

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable