Skip to content

Commit d3c9321

Browse files
author
Corentin Andre
committed
Merge branch 'master' of github.com:CorentinAndre/Vuejs-snippets
2 parents 8681a98 + 7f27418 commit d3c9321

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,47 @@
11
# Vuejs-snippets
22
Collection of Vue.js snippets for version 2.0+
3+
4+
## Usage
5+
6+
Just press `TAB` or `ENTER` to unfold a snippet
7+
8+
### Single file template
9+
```html
10+
template <!--Single file component template-->
11+
```
12+
13+
### HTML snippets
14+
```html
15+
router-view <!--Vuejs router-view component-->
16+
router-link <!--Vuejs router-link component with named route-->
17+
component <!--Include component in HTML-->
18+
```
19+
### HTML tags
20+
```html
21+
v-for <!--Vuejs binding for list rendering-->
22+
v-if <!--Vuejs binding for if conditional rendering-->
23+
v-else-if <!--Vuejs binding for else if rendering-->
24+
v-else <!--Vuejs binding for else conditional rendering-->
25+
v-show <!--Vuejs binding for show conditional rendering-->
26+
v-model <!--Vuejs binding for model binding-->
27+
```
28+
29+
### Javascript
30+
```javascript
31+
beforeCreate //Vuejs instance lifecycle hook for beforeCreate
32+
created //Vuejs instance lifecycle hook for created
33+
beforeMount //Vuejs instance lifecycle hook for beforeMount
34+
mounted //Vuejs instance lifecycle hook for mounted
35+
beforeUpdate //Vuejs instance lifecycle hook for beforeUpdate
36+
updated //Vuejs instance lifecycle hook for updated
37+
beforeUpdate //Vuejs instance lifecycle hook for beforeUpdate
38+
updated //Vuejs instance lifecycle hook for updated
39+
beforeDestroy //Vuejs instance lifecycle hook for beforeDestroy
40+
destroyed //Vuejs instance lifecycle hook for destroyed
41+
vwatch //Vuejs way to watch instance properties
42+
methods //Vuejs methods event handlers
43+
components //Use it when you want to add child components to parent component.
44+
props //Vuejs way to pass data to child components
45+
vcomputed //Vuejs computed property
46+
```
47+

0 commit comments

Comments
 (0)