Hi,
I am new in ionic v2. I want to create database in ionic v2 how i am achieve it? Please give me an example.
I tried it from https://blog.nraboy.com/2015/12/use-sqlite-in-ionic-2-instead-of-local-storage/ but it will not work i will give me error =>
EXCEPTION: Error during instantiation of MyApp!.
app.bundle.js:32079 EXCEPTION: Error during instantiation of MyApp!.BrowserDomAdapter.logError @ app.bundle.js:32079BrowserDomAdapter.logGroup @ app.bundle.js:32089ExceptionHandler.call @ app.bundle.js:7857(anonymous function) @ app.bundle.js:16955NgZone._notifyOnError @ app.bundle.js:17596collection_1.StringMapWrapper.merge.onError @ app.bundle.js:17491run @ app.bundle.js:1186(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$$internal$$tryCatch @ app.bundle.js:2556lib$es6$promise$$internal$$invokeCallback @ app.bundle.js:2568lib$es6$promise$$internal$$publish @ app.bundle.js:2539(anonymous function) @ app.bundle.js:1288microtask @ app.bundle.js:17549run @ app.bundle.js:1183(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$asap$$flush @ app.bundle.js:2350
app.bundle.js:32079 ORIGINAL EXCEPTION: Error: constructor(options={}) not implemented for this storage engineBrowserDomAdapter.logError @ app.bundle.js:32079ExceptionHandler.call @ app.bundle.js:7866(anonymous function) @ app.bundle.js:16955NgZone._notifyOnError @ app.bundle.js:17596collection_1.StringMapWrapper.merge.onError @ app.bundle.js:17491run @ app.bundle.js:1186(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$$internal$$tryCatch @ app.bundle.js:2556lib$es6$promise$$internal$$invokeCallback @ app.bundle.js:2568lib$es6$promise$$internal$$publish @ app.bundle.js:2539(anonymous function) @ app.bundle.js:1288microtask @ app.bundle.js:17549run @ app.bundle.js:1183(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$asap$$flush @ app.bundle.js:2350
app.bundle.js:32079 ORIGINAL STACKTRACE:BrowserDomAdapter.logError @ app.bundle.js:32079ExceptionHandler.call @ app.bundle.js:7869(anonymous function) @ app.bundle.js:16955NgZone._notifyOnError @ app.bundle.js:17596collection_1.StringMapWrapper.merge.onError @ app.bundle.js:17491run @ app.bundle.js:1186(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$$internal$$tryCatch @ app.bundle.js:2556lib$es6$promise$$internal$$invokeCallback @ app.bundle.js:2568lib$es6$promise$$internal$$publish @ app.bundle.js:2539(anonymous function) @ app.bundle.js:1288microtask @ app.bundle.js:17549run @ app.bundle.js:1183(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$asap$$flush @ app.bundle.js:2350
app.bundle.js:32079 Error: constructor(options={}) not implemented for this storage engine
at Error (native)
at SqlStorage.StorageEngine (http://localhost:8100/build/js/app.bundle.js:59959:16)
at new SqlStorage (http://localhost:8100/build/js/app.bundle.js:60119:17)
at new Storage (http://localhost:8100/build/js/app.bundle.js:59917:27)
at MyApp.database (http://localhost:8100/build/js/app.bundle.js:3272:25)
at new MyApp (http://localhost:8100/build/js/app.bundle.js:3229:15)
at http://localhost:8100/build/js/app.bundle.js:8120:52
at Injector._instantiate (http://localhost:8100/build/js/app.bundle.js:6695:28)
at Injector._instantiateProvider (http://localhost:8100/build/js/app.bundle.js:6649:26)
at Injector._new (http://localhost:8100/build/js/app.bundle.js:6638:22)BrowserDomAdapter.logError @ app.bundle.js:32079ExceptionHandler.call @ app.bundle.js:7870(anonymous function) @ app.bundle.js:16955NgZone._notifyOnError @ app.bundle.js:17596collection_1.StringMapWrapper.merge.onError @ app.bundle.js:17491run @ app.bundle.js:1186(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$$internal$$tryCatch @ app.bundle.js:2556lib$es6$promise$$internal$$invokeCallback @ app.bundle.js:2568lib$es6$promise$$internal$$publish @ app.bundle.js:2539(anonymous function) @ app.bundle.js:1288microtask @ app.bundle.js:17549run @ app.bundle.js:1183(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$asap$$flush @ app.bundle.js:2350
app.bundle.js:32079 ERROR CONTEXT:BrowserDomAdapter.logError @ app.bundle.js:32079ExceptionHandler.call @ app.bundle.js:7873(anonymous function) @ app.bundle.js:16955NgZone._notifyOnError @ app.bundle.js:17596collection_1.StringMapWrapper.merge.onError @ app.bundle.js:17491run @ app.bundle.js:1186(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$$internal$$tryCatch @ app.bundle.js:2556lib$es6$promise$$internal$$invokeCallback @ app.bundle.js:2568lib$es6$promise$$internal$$publish @ app.bundle.js:2539(anonymous function) @ app.bundle.js:1288microtask @ app.bundle.js:17549run @ app.bundle.js:1183(anonymous function) @ app.bundle.js:17509zoneBoundFn @ app.bundle.js:1156lib$es6$promise$asap$$flush @ app.bundle.js:2350
app.bundle.js:32079 _Context {element: ion-app, componentElement: null, injector: Injector}
also i tried on my device after run my app it will show me white screen.
Please help me.
Thanks in advance !!