Closed d3mac123 closed 6 years ago
Check demo-ng in this repo for a mixed db demo 👍
I guess I am screwed :) Never worked with Angular and the code there seems to be "a bit" unreadable for a designer fighting with Vanilla JS code.
I will keep "fighting" here. Looking forward to reading an updated Docs in plain JS.
Ehm, I’m on my phone in a car so it’s hard to help, but go here and look at the const firebase at the top: https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/demo-ng/app/item/items.component.ts — that one has the firestore() function.
Same as in the readme actually: https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/FIRESTORE.md
Just make sure you have that /app at the end of the require.
the /app needs to be the "app-name" or just the word app, as in the docs?
/app as in the docs. It’s a physical folder in the plugin source.
I am trying to play with Firestore in my current (Realtime DB) app. Here's what I have:
Trying to run the sample Firestore code:
I get the following error:
Which I assume is because the Firestore database needs to be referenced (after all, its name is just name-of-the-app, instead of https://name-of-the-app.firebaseio.com/
How can I do that?