After working with Ionic 2 in sample apps here and there and working with Angular 2 in the same capacity, I would really like to know if anyone has attempted to write one set of class components with views for Ionic and another set of views for a normal web app, transpiling each in one shot.
In other words, I’d like to have a single project, using different views: one set of views for Ionic and one set of views for a normal web app, and transpile (with TypeScript) each into their own directories. So, for Ionic, it would be the experience as it is now with V2 with the addition of another directory that includes a set of views (same class components) that are just for the web (Angular 2 views).
This is the ultimate dream of code reuse. I’m sure it’s possible to get the TypeScript compiler to output to 2 different directories using different templates, but I’m not sure how. Any input would be greatly appreciated.