Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec4aaf8

Browse files
author
Theodore Messinezis
committed
Minor example changes
1 parent 86d56d1 commit ec4aaf8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/example/components/chatroom.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
message: "",
1515
messages: [
1616
{from: "theomessin", message: "This example demonstrates what the vue-chat-scroll plugin does."},
17-
{from: "theomessin", message: "When the v-chat-scroll directive is applied to an element"},
17+
{from: "theomessin", message: "When the v-chat-scroll directive is
18+
applied to an element,"},
1819
{from: "theomessin", message: "it will be automatically monitored by the plugin."},
1920
{from: "theomessin", message: "When a new child is added, the plugin will scroll to the bottom of the element."},
2021
{from: "theomessin", message: "Why not try it yourself? Simply type a message below and press enter to send!"}
@@ -24,7 +25,7 @@
2425
methods: {
2526
send: function () {
2627
if (this.message == "") return;
27-
this.messages.push({from: "You", message: this.message});
28+
this.messages.push({from: "you", message: this.message});
2829
this.message = "";
2930
}
3031
}
@@ -72,4 +73,4 @@
7273
box-sizing: border-box
7374
padding: 7px
7475
width: 100%
75-
</style>
76+
</style>

0 commit comments

Comments
 (0)