Build a Dynamic Preview of Ionic App in Angular 2 Web Application


#1

Hi guys,

I am building a web application for desktop (in angular 2), where users can create content for the mobile phone. For the finished content I use ionic and now I would like to allow users to preview how their content will look on the phone as they are creating it. I have no problem sharing the data, but can i use my ionic code somehow to share the same html view templates. How do Ionic do it in their component pages??

Any help is much appreciated.


#2

The previews from the component pages are a Ionic app that lives here: https://github.com/driftyco/ionic-preview-app
You can check the source code of the component docs to see how they are integrated there, easiest use the “inspect” feature of your browser’s dev tools.