Firebase ❤️ NGXS, The Perfect Couple

A few years ago Firebase was a game-changer for web-app development. Designed for high performance and ease-of-use, developer’s productivity was boosted and millions of apps were built since then.

Later on, NGXS brought to the Angular ecosystem a new reactive state management library. With simplicity and code ergonomics as its core focus, it helped thousands of developers to make the dreaded state management problem go away.

But how can we bring them together to take things to the next level?

NGXS recently introduced a plugin called @ngxs-labs/firestore-plugin which provides a simple yet flexible API to connect an @Action to a Firestore query, and its query results to the store, allowing you to easily keep all your app data in a single place, making things much easier to select and combine data from different origins (Firestore, REST APIs, etc) and displaying it in your components.

In this tutorial we’ll go over how the plugin works and a few examples of how to use it.

How does it work?

Let’s say you have a @State, and you want to fetch items from a Firestore collection into the state. Using firestore-plugin all you need to do is:

  • Connect an @Action to a Firestore query
  • Listen for query results in the StreamEmmitted Action handler and update the state accordingly.

That’s it. That’s all you need. Now let’s take a closer look how to do this and how it works under the hood.

#firebase

What is GEEK

Buddha Community

Firebase ❤️ NGXS, The Perfect Couple

What is firebase,firebase bangla tutorial.

https://youtu.be/8BnVKuf1E5M

#firebase #firebase database #c# with firebase #c# with firebase tutorials #c# with firebase database #asp.net with firebase database

Firebase Introduction with C#

https://youtu.be/7_1t_f3sNyc

#firebase #c# with firebase #firebase database #c# with firebase tutorials #c# with firebase database #asp.net with firebase database

Save Employee into firebase

https://youtu.be/_yBUW2JUM8Q

#firebase #firebase database #c# with firebase #c# with firebase database #c# with firebase tutorials #asp.net with firebase database

Create database into firebase

https://youtu.be/u3F3GCdBu08

#firebase #firebase database #c# with firebase #c# with firebase database #c# with firebase tutorials #asp.net with firebase database

Install firesharp library from nuget

https://youtu.be/dw4foWFnGjI

#firebase #firebase database #c# with firebase #c# with firebase database #c# with firebase tutorials #asp.net with firebase database