English is not my mother tongue but man you made a fantastic explanation. I was searching during days with tons of videos regarding to this topic but any of them were so good like this. After this, All I can do is give you a like and subscribe to your channel. You truly deserve it.
I know what you mean - and that's one reason I like online courses with someone other than a normal American accent. The interesting way the words are spoken helps keep me tuned in for some reason, and keeps me from getting distracted during parts I already know. All the online courses I take are with instructors with accents! I specifically enjoy how Mosh speaks.
I would note that even with observables coming from http (even they emit single value) we should care about unsubscribe on component destroy hook because the ajax call could take some time, and if the component is destroyed before the call completes, the subscription will still be in play (you can try it with rxjs .delay in angular 4)
I'm doing this course now and I'm totally stuck because it seems that all these firebase modules have changed. If someone knows how all of this has changed and what to do, please tell me! thanks
@@Don_ron666 thx ruben for your comment. Im really dissapointed with the course, it is really out of date and not support at all from the teacher and no way to refund it...
I need help. I'm having troubles around 16:51. Somehow "db.list" doesn't have the subscribe property anymore. Here is the error: "Property 'subscribe' does not exist on type 'AngularFireList'." It also says that the return type of "db.list" is "AngularFireList". So I'm guessing that it is no longer returning an observable which why the subscribe property is no longer available. Angular CLI: 7.1.4 Node: 10.15.0 @angular/fire: 5.1.1 Please help. Thanks. EDIT: So I found the answer. db.list('/courses') .valueChanges() .subscribe(courses=> { this.courses= courses; console.log(this.courses); });
hi Mosh.. seriously you did a very good job ... can you plz do me a favour .. i need to link for build enterprise apps with angular course .. can you plz paste it here.. i cannot find it on your website.
I like a lot your way of teaching !! I'm having some difficulties in displaying data from fire-base. I'm using NG 6, and since a lot have been changed and deprecated i struggled a bit to get the same result as a beginner with NG 6. I couldn't manage to display data like your '' Adding object lecture " exactly when i pushed an object and tried to display it using {{ course || course.name }}. I get as a return the list but with [object object] instead of course5. If anyone had the same problem, it would be great to share your solutions. Thanks in advance !
i have a slight difference (nov 13 2017). When i go to the console, I don't have objects, rather the data received from Firebase is a normal array. Later, in the view snippet, to get it to work i used {{ course }} rather than {{ course.$value }} . Does anyone else have this difference?
im doing his angular course and im really stuck in the project, it seems to be that all the firebase configuration has changed and the course has not been updated. not recommended his angular course!!!
Hey Mosh we got an latest update on Firebase ie FireStore. what do you say about that i mean any course update and demo video's on this would be great.
I have type error in Adding Object section in html file (let course of courses$ | async): Error: InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe' How can I fix it? It seems I have different types and *ngFor doesn't iterate courses$ But adding new course to the database works correctly. The issue is that it isn't displaying on the page.
sir i am having problem for adding firebase as am using angular 6 with new version of firebase... these methods are somehow not working... i am very greatful to you if you will make a video on it ..its very much needed
StackOverflow says that it should work: db.list('/courses') .valueChanges() .subscribe(courses=> { this.courses= courses; console.log(this.courses); });
i get this error ERROR in node_modules/@angular/fire/firebase.app.module.d.ts:2:10 - error TS2614: Module '"../../firebase"' has no exported member 'analytics'. Did you mean to use 'import analytics from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~~~~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:21 - error TS2614: Module '"../../firebase"' has no exported member 'app'. Did you mean to use 'import app from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:26 - error TS2614: Module '"../../firebase"' has no exported member 'auth'. Did you mean to use 'import auth from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:32 - error TS2614: Module '"../../firebase"' has no exported member 'database'. Did you mean to use 'import database from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~~~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:42 - error TS2614: Module '"../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~~~~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:53 - error TS2614: Module '"../../firebase"' has no exported member 'functions'. Did you mean to use 'import functions from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~~~~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:64 - error TS2614: Module '"../../firebase"' has no exported member 'messaging'. Did you mean to use 'import messaging from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~~~~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:75 - error TS2614: Module '"../../firebase"' has no exported member 'performance'. Did you mean to use 'import performance from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~~~~~~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:88 - error TS2614: Module '"../../firebase"' has no exported member 'remoteConfig'. Did you mean to use 'import remoteConfig from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~~~~~~~~~ node_modules/@angular/fire/firebase.app.module.d.ts:2:102 - error TS2614: Module '"../../firebase"' has no exported member 'storage'. Did you mean to use 'import storage from "../../firebase"' instead? 2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app'; ~~~~~~~ node_modules/@angular/fire/firestore/interfaces.d.ts:2:10 - error TS2614: Module '"../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../firebase"' instead? 2 import { firestore } from 'firebase/app'; ~~~~~~~~~ node_modules/@angular/fire/firestore/collection/collection.d.ts:2:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../../firebase"' instead? 2 import { firestore } from 'firebase/app'; ~~~~~~~~~ node_modules/@angular/fire/firestore/document/document.d.ts:5:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../../firebase"' instead? 5 import { firestore } from 'firebase/app'; ~~~~~~~~~ node_modules/@angular/fire/firestore/collection-group/collection-group.d.ts:2:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../../firebase"' instead? 2 import { firestore } from 'firebase/app'; ~~~~~~~~~ node_modules/@angular/fire/firestore/firestore.d.ts:8:10 - error TS2614: Module '"../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../firebase"' instead? 8 import { firestore } from 'firebase/app';
mosh i am getting some error while running the command npm install firebase angularfire2 --save if somehow i manage to pass i am getting some more errors in console regarding function and some fire* is not exported from '@angular/modul....blablabla' please do help me
Though I have a problem with fetching data from firebase in form of objects. courses: any[]; constructor(db: AngularFireDatabase) { db.list('/courses').valueChanges().subscribe(courses => {this.courses = courses; console.log(this.courses); }); } This is the way, how I fetch data from firebase, because I am working with the latest version of Angular. So it returns data not in form of objects-key: value pairs, but I get an array like: (3) ["course 1", "course 2", "course 3"]. Do you have any suggestions how can I fix that? Thank you in advance.
In console.log it does not print the object it just print the values db.list('/courses').valueChanges().subscribe(courses =>{ this.course = courses; console.log(this.course); }); Output in console 0: "course1" 1: "course2" 2: author: "name" price: 150
Getting this error while "ng serve", can anybody help me out /node_modules/angularfire2/database/list/audit-trail.d.ts (7,133): Cannot find namespace 'database'
that is because of a breaking change in firebase package in 4.8.1, try changing the version of firebase: ^4.8.1 to firebase: 4.8.0 in package.json, and then hit npm update in the project folder.
Thanks for this very nice tutorial! I have a small problem, when I want to call the "subscribe" on db.list('courses'), I get the following message: Property 'subscribe' does not exist on type 'AngularFireList'. Is that changed over time, or ..?
I had the same problem have a look to the code below db.list('/courses').valueChanges().subscribe(result=>{ this.courses=result; console.log(this.courses); })
Dear Mosh, thank you very much for your tutorials.They are really great, especially for beginners.
English is not my mother tongue but man you made a fantastic explanation. I was searching during days with tons of videos regarding to this topic but any of them were so good like this. After this, All I can do is give you a like and subscribe to your channel. You truly deserve it.
Juan Luna yeah the same for me
Hey greetings from Brazil.
I love how you explain the details.
Today you won a new follower.
Great little video that is a very clear walkthrough of getting Firebase up and running in Angular 2. Worked for me!
I saw many tutorials. Yours are the best explained...no way
Thankyou Mosh
Your Angular tutorials are awesome! Please do more :)
Dear Mosh, could you please share the second video of the firebase tutorial.
This is the best explanation I have found! Thank you!
Anyone else loves the say Mosh says "so"? Ok, I'll let myself out now. XD
I know what you mean - and that's one reason I like online courses with someone other than a normal American accent. The interesting way the words are spoken helps keep me tuned in for some reason, and keeps me from getting distracted during parts I already know. All the online courses I take are with instructors with accents! I specifically enjoy how Mosh speaks.
не зря английский учил! super thx for tutorial
very easy to undersand, thanks Mr Mosh
simple explanation ... greate understanding .... WOW tanks Mr MOSH
love all your tutorials, you are a very good instructor
Sir Love You (Blessings)
I would note that even with observables coming from http (even they emit single value) we should care about unsubscribe on component destroy hook because the ajax call could take some time, and if the component is destroyed before the call completes, the subscription will still be in play (you can try it with rxjs .delay in angular 4)
Perfect, really helpful.
Google Firebase has now changed a lot. Confused! :O
man you're good, i need more firebase tuts.... can you please do a (zero to pro firebase series)
Fantastic, Awesome teaching By Most Hamedani.
thank you sir for your brief explanation on firebase
step by step .. super
Very informative
good info about memory leaks !
I'm doing this course now and I'm totally stuck because it seems that all these firebase modules have changed. If someone knows how all of this has changed and what to do, please tell me! thanks
i have the same problem, i wish i could refund the course but there is not possible, so a big let down...
@@whocares611 I have the same problem as well trying to work through them but it's very hard
@@Don_ron666 thx ruben for your comment. Im really dissapointed with the course, it is really out of date and not support at all from the teacher and no way to refund it...
I need help. I'm having troubles around 16:51. Somehow "db.list" doesn't have the subscribe property anymore.
Here is the error: "Property 'subscribe' does not exist on type 'AngularFireList'."
It also says that the return type of "db.list" is "AngularFireList".
So I'm guessing that it is no longer returning an observable which why the subscribe property is no longer available.
Angular CLI: 7.1.4
Node: 10.15.0
@angular/fire: 5.1.1
Please help. Thanks.
EDIT:
So I found the answer.
db.list('/courses')
.valueChanges()
.subscribe(courses=> {
this.courses= courses;
console.log(this.courses);
});
I was having the same issue, thanks for the tip :)
Thank you, I was having the same issue
nakita ko to sa stackoverflow ...dapat pala naghanap nalang muna ako sa comments haha
thanks a lot!
Awesome dear Sir Mosh :)
I think you forgot to mention, npm install angularfire2 ... btw great tutorial. Thanks for sharing.
good teaching thank you sir
Course is out of date
hi Mosh.. seriously you did a very good job ... can you plz do me a favour .. i need to link for build enterprise apps with angular course .. can you plz paste it here.. i cannot find it on your website.
Really Fantastic. Thank you
AYOUB MOROCCO
I like a lot your way of teaching !!
I'm having some difficulties in displaying data from fire-base. I'm using NG 6, and since a lot have been changed and deprecated i struggled a bit to get the same result as a beginner with NG 6. I couldn't manage to display data like your '' Adding object lecture " exactly when i pushed an object and tried to display it using {{ course || course.name }}. I get as a return the list but with [object object] instead of course5.
If anyone had the same problem, it would be great to share your solutions. Thanks in advance !
this sections of this.courses = courses is producing an error. I've copied the code line for line
very good job
i have a slight difference (nov 13 2017). When i go to the console, I don't have objects, rather the data received from Firebase is a normal array. Later, in the view snippet, to get it to work i used {{ course }} rather than {{ course.$value }} . Does anyone else have this difference?
yeah the newer version of angular just makes it simpler I think
yes. {{course}} worked for me too
im doing his angular course and im really stuck in the project, it seems to be that all the firebase configuration has changed and the course has not been updated. not recommended his angular course!!!
true..
thanks for your great videos! q: how do we "unsubscribe" from observing changes to the Firebase data?
It works!! Cool :)
what angular version you use ?
CAn you share the video tutorial on handling memory leaks in angular firebase.
Hey Mosh we got an latest update on Firebase ie FireStore. what do you say about that i mean any course update and demo video's on this would be great.
I have type error in Adding Object section in html file (let course of courses$ | async): Error: InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe' How can I fix it? It seems I have different types and *ngFor doesn't iterate courses$
But adding new course to the database works correctly. The issue is that it isn't displaying on the page.
When doing npm install it says angularfire2 is depreciated and to user @angular/fire instead. Please help me with this.
sir i am having problem for adding firebase as am using angular 6 with new version of firebase... these methods are somehow not working... i am very greatful to you if you will make a video on it ..its very much needed
very useful
I am waiting for a MEAN stack course
good luck
Okay Mr.mosh
Tq Sooo much
This guide is not working with AngularFire 5.0. Please be aware.
mosh..i don't know if you read comments but can you make a tutorial on infinite scroll angular + asp.net core?
keep getting error Property 'subscribe' does not exist on type 'AngularFireList'.
:/
I am facing the same problem
StackOverflow says that it should work:
db.list('/courses')
.valueChanges()
.subscribe(courses=> {
this.courses= courses;
console.log(this.courses);
});
Array create with firebase doesn’t exist in my localhost (in console section). At 19:47 in this video. Solutions?
hi sir i want full back end angular latest course is it available ?
Which editor or IDE are you using sir ?
hey Mosh its old version of Firebase, currently V5 have several changes , can you redo the video with latest
Please show me how to get one object value from firebase to angular, plz
Bro!! You always impress me a lot and a lot feed our knowledge ;)
I dont have environment folder inside src? As I have created project using yeoman and not ng app.How do I add now?
I LOVE YOU !
i get this error
ERROR in node_modules/@angular/fire/firebase.app.module.d.ts:2:10 - error TS2614: Module '"../../firebase"' has no exported member 'analytics'. Did you mean to use 'import analytics from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:21 - error TS2614: Module '"../../firebase"' has no exported member 'app'. Did you mean to use 'import app from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:26 - error TS2614: Module '"../../firebase"' has no exported member 'auth'. Did you mean to use 'import
auth from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:32 - error TS2614: Module '"../../firebase"' has no exported member 'database'. Did you mean to use 'import database from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:42 - error TS2614: Module '"../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:53 - error TS2614: Module '"../../firebase"' has no exported member 'functions'. Did you mean to use 'import functions from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:64 - error TS2614: Module '"../../firebase"' has no exported member 'messaging'. Did you mean to use 'import messaging from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:75 - error TS2614: Module '"../../firebase"' has no exported member 'performance'. Did you mean to use 'import performance from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:88 - error TS2614: Module '"../../firebase"' has no exported member 'remoteConfig'. Did you mean to use
'import remoteConfig from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:102 - error TS2614: Module '"../../firebase"' has no exported member 'storage'. Did you mean to use 'import storage from "../../firebase"' instead?
2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
~~~~~~~
node_modules/@angular/fire/firestore/interfaces.d.ts:2:10 - error TS2614: Module '"../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../firebase"' instead?
2 import { firestore } from 'firebase/app';
~~~~~~~~~
node_modules/@angular/fire/firestore/collection/collection.d.ts:2:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../../firebase"' instead?
2 import { firestore } from 'firebase/app';
~~~~~~~~~
node_modules/@angular/fire/firestore/document/document.d.ts:5:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../../firebase"' instead?
5 import { firestore } from 'firebase/app';
~~~~~~~~~
node_modules/@angular/fire/firestore/collection-group/collection-group.d.ts:2:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../../firebase"' instead?
2 import { firestore } from 'firebase/app';
~~~~~~~~~
node_modules/@angular/fire/firestore/firestore.d.ts:8:10 - error TS2614: Module '"../../../firebase"' has no exported member 'firestore'. Did you mean to use
'import firestore from "../../../firebase"' instead?
8 import { firestore } from 'firebase/app';
@Muhammad Mehdi this tutorial is too old... that is the reason why does not work....
i can get data at localhost but i didnt get when i download content of dist file via filezilla on my website. what can i do for?
mosh i am getting some error while running the command
npm install firebase angularfire2 --save
if somehow i manage to pass i am getting some more errors in console regarding
function and some fire* is not exported from '@angular/modul....blablabla'
please do help me
Though I have a problem with fetching data from firebase in form of objects.
courses: any[];
constructor(db: AngularFireDatabase) {
db.list('/courses').valueChanges().subscribe(courses => {this.courses = courses; console.log(this.courses); });
}
This is the way, how I fetch data from firebase, because I am working with the latest version of Angular.
So it returns data not in form of objects-key: value pairs, but I get an array like: (3) ["course 1", "course 2", "course 3"].
Do you have any suggestions how can I fix that?
Thank you in advance.
I am also facing same problem
constructor(db: AngularFireDatabase) {
db.list('/courses').snapshotChanges().subscribe(courses => {this.courses = courses; console.log(this.courses); });
}
Sir... Please Help me...
can't read this...
import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database';
Array create with firebase doesn’t exist in my localhost (in console section). At 19:47 in this video. Solutions?
17:00 Fix to : `db.list('/courses')
.valueChanges().subscribe(courses => { ...`
Yes, but still not giving u the key. And if u take snapshotChanges then it gives some messy jason
Go to fireship
for this kind of stuff
What is the difference between angularfire2 and @angular/fire
In console.log it does not print the object it just print the values
db.list('/courses').valueChanges().subscribe(courses =>{ this.course = courses;
console.log(this.course);
});
Output in console
0: "course1"
1: "course2"
2:
author: "name"
price: 150
Why did you put db into imports surely that is a service provider ?
Could you plz do a video on Firbase + React.js? I believe lots of ppl would appreciate it very much!
Hi great course! But i am retrieving an empty array though i have stored data in firebase. Can anyone resolve the problem?
Thanks in advance.
same, you fixed it ?if so please let me know how
This doesn't work anymore with angularfire2 5?
Can Firebase used for electronic Patient record Management appps eficienttly
i have subcribe error by your code.. how to solve it. i am using angular 8
I am watching this now but seems like they have changed the UI display style of database in firebase.
Mongo is a NOSQL
Getting this error while "ng serve", can anybody help me out
/node_modules/angularfire2/database/list/audit-trail.d.ts (7,133): Cannot find namespace 'database'
Same here :/
downgrade to firebase 4.8.0 with npm install firebase@4.8.0 --save
Achref Othmeni thanks, it worked.
mosh aziz in cours ro update kon plssss.
at 17:28 on saving i get error "ERROR in src/app/app.component.ts(13,8): error TS2339: Property 'subscribe' does not exist on type 'AngularFireList'."
same issue u I face hw you resolve this
how to to add operation in firebase
how can i filter my data ?
how to get reference id in return insert
Anyone getting error 'cannot find namespace firebase' ?
that is because of a breaking change in firebase package in 4.8.1, try changing the version of firebase: ^4.8.1 to firebase: 4.8.0 in package.json, and then hit npm update in the project folder.
Yeah i've done that and it worked ! thanks .
I was able to able to display on data on the client side by adding the following
{{ course || course.name }}
i am getting error "TypeError: db.list(...).subscribe is not a function" can you help me please
Try this one..
db.list('/Users').valueChanges().subscribe(console.log(this.users)});
Getting runtime error as :
"Uncaught (in promise): Error: StaticInjectorError(AppModule)[AngularFireDatabase -> InjectionToken angularfire2.app.options]: StaticInjectorError(Platform: core)[AngularFireDatabase -> InjectionToken angularfire2.app.options]: NullInjectorError: No provider for InjectionToken angularfire2.app.options!
How add bootstrap to angular 5
Thanks for this very nice tutorial! I have a small problem, when I want to call the "subscribe" on db.list('courses'), I get the following message: Property 'subscribe' does not exist on type 'AngularFireList'. Is that changed over time, or ..?
I had the same problem have a look to the code below
db.list('/courses').valueChanges().subscribe(result=>{
this.courses=result;
console.log(this.courses);
})
Do AQ Khan's solution, and then change your "component.html" to
{{ course }}
ngOnInit()
// tslint:disable-next-line:one-line
{
this._db.list('/courses')
.valueChanges()
.subscribe(product => {
this.products = product;
console.log(this.products);
} );
}
use this one happy coding :)
thanks Vipul, how did u figure it out?
Yes, your code works! Thanks man!
"No provider for InjectionToken FirebaseAppConfigToken!" I got this runtime error
import { AngularFire } from 'angularfire2'; not found ???
had the same problem, can you fix it?
Sir, Please Help...
Property 'subscribe' does not exist on type 'AngularFireList'.
Fasil use this code
ngOnInit()
// tslint:disable-next-line:one-line
{
this._db.list('/courses')
.valueChanges()
.subscribe(product => {
this.products = product;
console.log(this.products);
} );
}
Happy Coding
Vipul Singh: thanks...
it is not working
pretty old code of firebase
What happens to ER model
hi mosh I completed your ap.net mvc course few weeks before ,razor views or angular which should I choose
very helpful