Skip to content

Commit bbc199c

Browse files
authored
Update custom-directives.md (#1214)
1 parent 10849bb commit bbc199c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/migration/custom-directives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Additionally, the `expression` string is no longer passed as part of the `bindin
1515

1616
In Vue 2, custom directives were created by using the hooks listed below to target an element’s lifecycle, all of which are optional:
1717

18-
- **bind** - Occurs once the directive is bound to the element. Occurs only once.
19-
- **inserted** - Occurs once the element is inserted into the parent DOM.
18+
- **bind** - Called once the directive is bound to the element. Called only once.
19+
- **inserted** - Called once the element is inserted into the parent DOM.
2020
- **update** - This hook is called when the element updates, but children haven't been updated yet.
2121
- **componentUpdated** - This hook is called once the component and the children have been updated.
2222
- **unbind** - This hook is called once the directive is removed. Also called only once.

0 commit comments

Comments
 (0)