Skip to content

Instantly share code, notes, and snippets.

View marcguilera's full-sized avatar
👨‍💻

Marc Guilera marcguilera

👨‍💻
View GitHub Profile
@aggarwalankush
aggarwalankush / Sql.ts
Last active December 19, 2019 12:33
Ionic 2 storage
import {Injectable} from "@angular/core";
import {Platform} from "ionic-angular";
const DB_NAME: string = '__mydbname';
const win: any = window;
@Injectable()
export class Sql {
private _dbPromise: Promise<any>;