-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add terminal directive explanation #258
Conversation
@@ -277,8 +277,50 @@ Vue.directive('my-directive', { | |||
|
|||
Use this wisely though, because in general you want to avoid side-effects in your templates. | |||
|
|||
### terminal | |||
|
|||
In some cases, we may want to used as the **terminal** directives. For example, you may want to perform custom directive than normal directive like `v-if` or `v-for`. If you want to do so, you need to pass in `terminal: true` in your directive definition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"custom directive than normal directive" -> "custom directive instead of normal directive"
sounds better to my ear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't get it ) What is terminal directive? How is it different from non-terminal one? Why would I want to make a terminal?
Tbh I don't know myself what it is and can't understand it from the text )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your review!!
Sorry, poor documentation and english. 🙇
I'll try to fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kazupon Oh don't worry ) I'm not so very good in english as well. It's not my native :)
Thanks @kazupon ! I'm releasing 1.0.19, so I'll merge this and edit it before release. |
index.md: различные улучшения
See:
vuejs/vue#2272