Orez Orez -5 years ago 104
AngularJS Question

Doing a web live-preview of an Ionic Application

I was browsing ionic themes and I found a plugin on their pages which showcase their mobile application based on Ionic.


I was wondering where does this script come from and if there is a possibility to do the same on a website to showcase the demo ?

Answer Source

Actually, you don't need any special script to do this.

Just put www folder to your web server and put <iframe> on your website like this to showcase your app demo:

<iframe src="http://www.example.com/myapp/" width="320" height="568"></iframe> 

If you're not using any Cordova plugins then there is no problem (if you really wish to) to upload the contents of the www folder to your server, and woila - you'll have the same app. - source

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download