Skip to content

Commit 017f6db

Browse files
committed
chore(demo): update
1 parent 39af577 commit 017f6db

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

apps/demo/src/plugin-demos/firebase-database.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,20 @@ export class DemoModel extends DemoSharedFirebaseDatabase {
1818
this.transaction();
1919
this.randomData();
2020
this.children();
21+
this.setData();
2122
}
23+
24+
setData(){
25+
this.database
26+
.ref('/person/me')
27+
.set({ name: 'set', boolean: true , updated: new Date() })
28+
.then((value) => {
29+
console.log('set some data', value);
30+
}).catch(e =>{
31+
console.log('failed to set data', e);
32+
});
33+
}
34+
2235
randomData() {
2336
this.database
2437
.ref('/random')

0 commit comments

Comments
 (0)