import { firebase } from '@nativescript/firebase-core';
import '@nativescript/firebase-database';
const database = firebase().database();
database.ref(url).set(model).then(
(data) => {
observer.next(data);
observer.complete();
}
).catch((error) => {console.log("error in set " + error); observer.error(error);})
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@angular/animations": "^12.2.5",
"@angular/common": "^12.2.5",
"@angular/compiler": "^12.2.5",
"@angular/core": "^12.2.5",
"@angular/forms": "^12.2.5",
"@angular/platform-browser": "^12.2.5",
"@angular/platform-browser-dynamic": "^12.2.5",
"@angular/router": "^12.2.5",
"@nativescript/angular": "^12.2.0",
"@nativescript/background-http": "~5.0.0",
"@nativescript/camera": "~5.0.0",
"@nativescript/core": "~8.1.1",
"@nativescript/datetimepicker": "^2.1.9",
"@nativescript/firebase": "^11.1.3",
"@nativescript/firebase-core": "^1.0.0-alpha.35",
"@nativescript/firebase-crashlytics": "^1.0.0-alpha.35",
"@nativescript/firebase-database": "^1.0.0-alpha.35",
"@nativescript/firebase-storage": "^1.0.0-alpha.35",
"@nativescript/geolocation": "~8.0.0",
"@nativescript/imagepicker": "~1.0.0",
"@nativescript/mlkit-barcode-scanning": "^1.0.0-alpha.8",
"@nativescript/mlkit-core": "^1.0.0-alpha.8",
"@nativescript/mlkit-face-detection": "^1.0.0-alpha.8",
"@nativescript/theme": "^3.0.1",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"@nstudio/nativescript-camera-plus": "^4.1.0",
"@nstudio/nativescript-loading-indicator": "~4.0.0",
"@nstudio/nativescript-pulltorefresh": "~3.0.0",
"@nstudio/nativescript-snackbar": "~2.0.0",
"nativescript-imagecropper": "~4.0.0",
"nativescript-nfc": "~5.0.0",
"nativescript-permissions": "^1.3.8",
"nativescript-sound-kak": "^1.2.0",
"nativescript-theme-core": "~1.0.4",
"nativescript-ui-chart": "~9.0.0",
"nativescript-ui-sidedrawer": "~10.0.0",
"nativescript-webview-interface": "^1.4.2",
"rxjs": "^7.4.0",
"tns-platform-declarations": "^6.5.15",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-eslint/builder": "13.0.1",
"@angular-eslint/eslint-plugin": "13.0.1",
"@angular-eslint/eslint-plugin-template": "13.0.1",
"@angular-eslint/schematics": "13.0.1",
"@angular-eslint/template-parser": "13.0.1",
"@angular/compiler-cli": "^12.2.5",
"@nativescript/android": "8.1.1",
"@nativescript/schematics": "~0.5.0",
"@nativescript/types": "~8.1.0",
"@nativescript/webpack": "~5.0.0",
"@ngtools/webpack": "^12.2.5",
"@types/jasmine": "^3.5.11",
"@typescript-eslint/eslint-plugin": "5.3.0",
"@typescript-eslint/parser": "5.3.0",
"eslint": "^8.2.0",
"typescript": "~4.3.5"
},
"readme": "NativeScript Application",
"main": "./src/main.ts",
"scripts": {
"lint": "ng lint"
}
}