gun/examples/angular/src/app/gun.service.ts
Victor Noël a2148b36b3 angular-demo: simplify code
- Use ngx-pipes to transform object to array of pairs
- Extract GunDb in its own file
- Introduce deletion
2017-04-19 21:14:31 +02:00

7 lines
168 B
TypeScript

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