gun/examples/angular/src/app/gun.service.ts
2017-04-22 11:27:06 +02:00

8 lines
169 B
TypeScript

import { NgModule, Injectable } from '@angular/core';
import Gun from 'gun/gun';
@Injectable()
export class GunDb {
readonly gun = Gun(location.origin + '/gun');
}