mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-10 13:11:16 +00:00
16 lines
299 B
TypeScript
16 lines
299 B
TypeScript
|
import { Injectable } from '@angular/core';
|
||
|
import { AngularIndexedDB } from 'angular2-indexeddb';
|
||
|
|
||
|
@Injectable()
|
||
|
export class IndexedDbService {
|
||
|
private db: AngularIndexedDB;
|
||
|
|
||
|
constructor() {
|
||
|
this.db = new AngularIndexedDB('gns3-web-ui', 1);
|
||
|
}
|
||
|
|
||
|
public get() {
|
||
|
return this.db;
|
||
|
}
|
||
|
}
|