node.js - loopback-firebase connector with Database Firebase -


i'm developing angular2seedadvanced app. i'm using loopbackadk builder , loopback-firebase connector connect firebase. firebase db not updating values. how should implement this. here attached corresponding files.

login.service.ts

import { injectable, inject, ngzone } '@angular/core'; import { authmodelapi } '../sdk/services/custom/authmodel'; import { authmodel } '../sdk/models/authmodel'; import { accesstoken } '../sdk/models/basemodels'; @injectable() export class loginservice { private database: any; private authmodel: authmodel = new authmodel();  constructor(private authmodelapi: authmodelapi) {     console.log('constructing databaseservice');  }  signup(user: user) {      return this.authmodelapi.create({         "email": user.username,         "password": user.password     })         .subscribe(         () =>             alert("hereeeeeeeee")         );  } } 

while signup got post response

{"email":"abc@qwe.com","id":3}

that means value correctly inserted unfortunately firebase db remains empty no values updating. how can solve issue? in advance.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -