AngularJS Material: Material Design component library for AngularJS (1.x). Use angular/material2 channel for Angular Material (v2+).
@nicoandmee You are going to want to update the field on the appropriate document. Something like:
userRef.update({balance: currentBalance - 1});
You will need to instantiate currentBalance
, but that's the basic concept. The button handler function will need to be in your component class, but the component could, in turn, call a service that is injected into the component. See: Documents in AngularFirestore