import { Injectable } from '@angular/core';
import { AngularFire, FirebaseListObservable } from 'angularfire2';
/*
Generated class for the FirebaseService provider.
See https://angular.io/docs/ts/latest/guide/dependency-injection.html
for more info on providers and Angular 2 DI.
*/
@Injectable()
export class FirebaseService {
users:FirebaseListObservable<any>;
constructor(public angularFire: AngularFire,) {
console.log('Hello FirebaseService Provider');
this.users=this.angularFire.database.list('users');
}
saveuser(user){
this.users.push(user);
}
}
hi there in this code i'm trying to add new user to my firebase table under the users table the problem is i can't find the set method i only have access to push is it something i'm doing wrong ? thank you for the help