import { Injectable } from '@angular/core'; import { AppService } from '../app'; import { User,UserJson } from '../../models'; @Injectable({providedIn:'root'}) export class MeService { ext = "/app-user"; constructor(private app:AppService){} update(o:Partial){return this.app.http.post(this.ext+"/update",o);} populate(){return this.app.local.get("appuser");} save(o:any){return this.app.local.set("appuser",o||null);} }