Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 507fe97

Browse files
Testing web api expand/collapse
1 parent c60d9f7 commit 507fe97

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/DATABASE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,25 @@ Since this is the most likely feature you'll use with this plugin it has already
1111
### init
1212
You can optionally pass `persist` to the [`init` function](../README.md#init) to make Firebase save data to the local disc so it will work in offline scenario's. Default `false`.
1313

14+
<details>
15+
<summary>Native API</summary>
16+
1417
```js
1518
firebase.init({
1619
persist: true
1720
});
1821
```
22+
</details>
23+
24+
<details>
25+
<summary>Web API</summary>
26+
27+
```js
28+
firebase.initializeApp({
29+
persist: true
30+
});
31+
```
32+
</details>
1933

2034
### setValue
2135
Data is stored as JSON data at a specific path (which is appended to the URL you passed to `init`).

0 commit comments

Comments
 (0)