Skip to content

Commit 9359ebc

Browse files
committed
(docs) cleanup
1 parent 0c9b8c3 commit 9359ebc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ You can import it as a custom component:
9090

9191
```javascript
9292
<template>
93-
<chat-window :current-user-id="currentUserId" :rooms="rooms" :messages="messages" />
93+
<chat-window
94+
:current-user-id="currentUserId"
95+
:rooms="rooms"
96+
:messages="messages"
97+
/>
9498
</template>
9599

96100
<script>
@@ -122,13 +126,13 @@ You can import it as a custom component:
122126
// DO THIS
123127
const rooms = []
124128
for (let i = 0; i < res.length; i++) {
125-
rooms.push(res)
129+
rooms.push(res)
126130
}
127131
this.rooms = rooms
128132

129133
// DON'T DO THIS
130134
for (let i = 0; i < res.length; i++) {
131-
this.rooms.push(res)
135+
this.rooms.push(res)
132136
}
133137
```
134138

0 commit comments

Comments
 (0)