Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
ac02e496
Commit
ac02e496
authored
May 28, 2019
by
Natalia Tepluhina
Committed by
Phil Hughes
May 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a note about v-slot directive
parent
fe090797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
doc/development/fe_guide/style_guide_js.md
doc/development/fe_guide/style_guide_js.md
+12
-2
No files found.
doc/development/fe_guide/style_guide_js.md
View file @
ac02e496
...
...
@@ -544,14 +544,24 @@ Please check this [rules][eslint-plugin-vue-rules] for more documentation.
<component @click="eventHandler"/>
```
1
.
Shorthand
`:`
is preferable over
`v-bind`
2
.
Shorthand
`:`
is preferable over
`v-bind`
```javascript
// bad
<component v-bind:class="btn"/>
// good
<component :class="btsn"/>
<component :class="btn"/>
```
3.
Shorthand
`#`
is preferable over
`v-slot`
```javascript
// bad
<template v-slot:header></template>
// good
<template #header></template>
```
#### Closing tags
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment