Skip to content
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

Merged
merged 1 commit into from
Mar 25, 2016
Merged

Conversation

kazupon
Copy link
Member

@kazupon kazupon commented Mar 24, 2016

@@ -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.
Copy link
Collaborator

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

Copy link
Collaborator

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 )

Copy link
Member Author

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.

Copy link
Collaborator

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 :)

@yyx990803
Copy link
Member

Thanks @kazupon ! I'm releasing 1.0.19, so I'll merge this and edit it before release.

@yyx990803 yyx990803 merged commit 6eb1634 into vuejs:master Mar 25, 2016
dingyiming pushed a commit that referenced this pull request Dec 21, 2016
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Oct 1, 2017
lex111 pushed a commit to lex111/vuejs.org that referenced this pull request Feb 3, 2018
index.md: различные улучшения
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants