base-chat
base-chat copied to clipboard
A simple chat application built using Angular and Firebase
I'm currently using angular 6 i did all the same in feed.component.ts import { Component, OnInit, OnChanges } from '@angular/core'; import { ChatService } from '../services/chat.service'; import { Observable }...
For some reason I get this error trying to code in the async pipe on feed.component.html: invalidpipeargument: '[object object]' for pipe 'asyncpipe' Anyone else having the same issue?
Hello, I am getting the following error on the sendMessage() method. Argument of type '{ message: string; timeSent: string; userName: Observable; email: string; }' is not assignable to parameter of...
Step1. Create your firebase project, copy the link to firebase variable and paste it on environment.ts file. Step2. Open the terminal, and run npm install Step3. run npm install --s...
how can we use this code with angular 7. and can we use this code in angular 7
getMessages(): FirebaseListObservable { // query to create our message feed binding return this.db.list('message',{ query: { limitToLast: 20, orderByKey: true } }); }
On latest angularfire2 (5.0.0-rc.4) I think FirebaseListObservable is deprecated. Not working for me. Can help to upgrade latest version.
ERROR in src/app/services/chat.service.ts(48,7): error TS2345: Argument of type '{ query: { limitToLast: number; orderByKey: boolean; }; }' is not assignable to parameter of type 'QueryFn'. Object literal may only specify...
import { Injectable } from '@angular/core'; //import { AngularFireDatabase } from 'angularfire2/database'; import { AngularFireDatabase,FirebaseListObservable } from 'angularfire2/database-deprecated'; import { AngularFireAuth } from 'angularfire2/auth'; import { Observable } from 'rxjs/Observable';...