We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329aa27 commit 7363348Copy full SHA for 7363348
example-html-edit.html
@@ -0,0 +1,35 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+ <meta charset="UTF-8">
6
+ <title>Elroid Example</title>
7
+ <script src="Elroid.js"></script>
8
+</head>
9
10
+<body>
11
+ <div id="app">
12
+ <h1>{{title}}</h1>
13
+ <button el-click="Edit">Edit Tilte</button>
14
+ <button el-click="Defult">Defult</button>
15
+ </div>
16
17
+ <script>
18
+ const app = new Elroid({
19
+ el: '#app',
20
+ data: {
21
+ title: 'Welcome to Elroid Library',
22
+ methods: {
23
+ Edit() {
24
+ app.update({ title: "Home" });
25
+ },
26
+ Defult() {
27
+ app.update({ title: 'Welcome to Elroid Library' });
28
+ }
29
30
31
+ });
32
+ </script>
33
+</body>
34
35
+</html>
0 commit comments