Ionic2 : working with SQLite, Ionic Serve

290 Views Asked by At

I am working with SQLite and Ionic2. So far so good. However, I can't seems to make it work while browsing it with Ionic Serve. To put in the scenario: sometimes I need to make a quick layout adjustment / design which can be very nice if I could use browser to check instead of build and put on the emulator / devices.

Any idea how to make an SQLite work in web browser? If it is not possible, any better alternative / approach.

Thank you

1

There are 1 best solutions below

0
On BEST ANSWER

The SQLite plugin doesn't support browser but you could either mock your SQLite using ionic-native-mocks or setup a different project without any plugins and design your pages there. A good example about mocking could be this blog.