Submit User Input Data from HTML to Firebase Database Angular/TypeScript

I am messing around with angular and trying to implement firebase within the app as well. The dev environment I am using is StackBlitz. Currently I am working with a simple calculator and I have the following html for it: <h1>Calculator with Firebase</h1> <form fireForm [formGroup]=”fg” [path]=”path” (sync)=”handler($event)” novalidate> <label for=”firstNumber”>Number 1:</label><br> <input type=”text” formControlName=”firstNumber”…

Details

Retrieving values from an if statement

I am trying to get data from the if statement below into the variables outside the if statement but it returns 0.0 Need help figuring this out, please. Method to get data public void GetData(){ uuid_view = Settings.Secure.getString(getApplicationContext().getContentResolver(), Settings.Secure.ANDROID_ID); model_view = android.os.Build.MODEL; newLocation.getLatitude(); newLocation.getLongitude(); if (mCurrentLocation != null) { new_latitude = mCurrentLocation.getLatitude(); new_longitude = mCurrentLocation.getLongitude();…

Details