Firebase Read Data - Firebase

How to read Firebase data?

The image that displays the data to read is:

Firebase Read Data DB

Data is retrieved by using on () method. “Value” is taken as the event type and the snapshot of the data is retrieved by on () method. The JavaScript representation of the data is displayed by adding val () method to snapshot.

For instance,

On running the above code, the data appears on the console as:

Firebase Read Data Log

Other event types used for reading the data is explained in detail in the following chapter.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Firebase Topics