Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6dc3016

Browse files
committed
Update mutation and non-mutation methods
1 parent 2bf1162 commit 6dc3016

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ me [@SudheerJonna](https://twitter.com/SudheerJonna) for technical updates.
707707
7. reverse()
708708
709709
If you perform any of the above mutation method on the list then it triggers view update. For example, push method
710-
on array named 'items' trigger a view update,
710+
on array named 'todos' trigger a view update,
711711
```javascript
712712
vm.todos.push({ message: 'Baz' })
713713
```
@@ -721,6 +721,14 @@ me [@SudheerJonna](https://twitter.com/SudheerJonna) for technical updates.
721721
1. filter()
722722
2. concat()
723723
3. slice()
724+
4. map()
725+
5. reduce()
726+
6. find()
727+
7. includes()
728+
8. every()
729+
9. some()
730+
10. indexOf()
731+
11. join()
724732
725733
For example, lets take a todo list where it replaces the old array with new one based on status filter,
726734
```javascript
@@ -5683,7 +5691,7 @@ access the vm instance.
56835691
#### Main Lifecycle Hooks
56845692
56855693
| Lifecycle Stage | Composition API Hook | Description |
5686-
|---------------------------|----------------------|---------------------------------------------------------|
5694+
|------------------------- | -------------------- | -------------------------------------------------------|
56875695
| Before component creation | `onBeforeMount()` | Called right before the component is mounted |
56885696
| Component mounted | `onMounted()` | Called after the component has been mounted |
56895697
| Before update | `onBeforeUpdate()` | Called before the component updates the DOM |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /