Book Image

Ionic Cookbook

By : Hoc Phan
Book Image

Ionic Cookbook

By: Hoc Phan

Overview of this book

Table of Contents (18 chapters)
Ionic Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


You will learn how to send and receive data between Ionic and a backend server, which is Firebase in our case. As an app developer, you will want to spend more time on building a solution for your customers than building a backend server with a database on your own. Firebase can act as a real-time database so that your app data can be synchronized between the database, frontend model objects, and the view layer (that is, what users actually see). This three-way binding is powerful because it simplifies many complex implementation scenarios such as the following:

  • Chatting or messaging when there are multiple users sending and receiving data

  • Saving a multistep form's data

  • A real-time collaboration app that requires you to save a complex dataset

  • A real-time data feed for a social networking app

The key benefits of Firebase as a backend database is that you can ensure that there is a very low latency between saving data to the server and receiving an acknowledgement. This is very critical...