Skip to content

Commit 4792297

Browse files
authored
Update example-component.html
1 parent dd89d1f commit 4792297

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example-component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ <h2>{{title}}</h2>
3030
title: 'Custom Component',
3131
methods: {
3232
Edit() {
33-
this.title = "Home";
33+
component.update({ title: "Home" });
3434
}
3535
}
3636
},
3737
});
38-
document.getElementById('app').appendChild(component.el);
3938
</script>
4039
</body>
4140

0 commit comments

Comments
 (0)