Open vlukashov opened 6 years ago
One idea to consider: use StackBlitz to run live demos. It allows writing demos with modern JS and handles all browsers reasonably well. Here is one sample Vaadin.Router demo: https://stackblitz.com/edit/vaadin-router-starter?embed=1&file=index.js. Works in IE11 as well.
The running demo app can be embedded separately: https://vaadin-router-starter.stackblitz.io
The downsides of this approach are:
<vaadin-demo-iframe-renderer>
.
As a Vaadin.Router user I want to see the live demos working in all supported browsers. As a Vaadin.Router developer I want to write demos as any other application code (i.e. using modern language features and browser APIs).
DoD:
<vaadin-demo-snippet>
s and snippets work in the browsers that require that code to be transpiled firstimport {Router} from '@vaadin/router';
instead ofconst {Router} = window.Vaadin;