Skip to content

Commit e8e7f03

Browse files
committed
Update readme
1 parent a48a52f commit e8e7f03

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
# vuejs-snippets
2-
3-
[![apm](https://img.shields.io/apm/dm/vuejs-snippets.svg)](https://atom.io/packages/vuejs-snippets)
4-
[![apm](https://img.shields.io/apm/l/vuejs-snippets.svg?maxAge=2592000)](https://atom.io/packages/vuejs-snippets)
5-
[![apm](https://img.shields.io/apm/v/vuejs-snippets.svg?maxAge=2592000)](https://atom.io/packages/vuejs-snippets)
1+
# vuejs-snippets [![apm](https://img.shields.io/apm/dm/vuejs-snippets.svg)](https://atom.io/packages/vuejs-snippets) [![apm](https://img.shields.io/apm/l/vuejs-snippets.svg?)](https://atom.io/packages/vuejs-snippets) [![apm](https://img.shields.io/apm/v/vuejs-snippets.svg?)](https://atom.io/packages/vuejs-snippets)
2+
---
63

74
VueJS Snippets for Atom
85

9-
---
6+
107

118
## Types
129

@@ -36,6 +33,9 @@ body:
3633
//Component Data
3734
example: true,
3835
foo: "bar"
36+
37+
38+
3939
}
4040
},
4141
@@ -58,7 +58,7 @@ body:
5858
prefix: validator
5959

6060
body:
61-
```
61+
```javascript
6262
Vue.validator("validatorName", function (val) {
6363
return true
6464
});
@@ -70,7 +70,7 @@ body:
7070

7171
body:
7272

73-
```
73+
```javascript
7474
[..]
7575
validators: {
7676
nameOfValidator: function (val) {
@@ -88,7 +88,7 @@ body:
8888

8989
body:
9090

91-
```
91+
```javascript
9292
router.map({
9393
'/example': {
9494
component: Example,
@@ -109,12 +109,12 @@ body:
109109

110110
body:
111111

112-
```
113-
CONTEXT.$http.get(URL).then((result) => {
112+
```javascript
113+
this.$http.get(URL).then((result) => {
114114

115-
}, (error) => {
115+
}, (error) => {
116116

117-
})
117+
})
118118
})
119119
```
120120

@@ -124,8 +124,8 @@ body:
124124

125125
body:
126126

127-
```
128-
CONTEXT.$http.post(URL, PARAMS).then((response) => {
127+
```javascript
128+
this.$http.post(URL, PARAMS).then((response) => {
129129

130130
}, (error) => {
131131

@@ -138,8 +138,8 @@ body:
138138

139139
body:
140140

141-
```
142-
CONTEXT.$http.put(URL, PARAMS).then((response) => {
141+
```javascript
142+
this.$http.put(URL, PARAMS).then((response) => {
143143

144144
}, (error) => {
145145

@@ -152,8 +152,8 @@ body:
152152

153153
body:
154154

155-
```
156-
CONTEXT.$http.delete(URL, PARAMS).then((response) => {
155+
```javascript
156+
this.$http.delete(URL, PARAMS).then((response) => {
157157

158158
}, (error) => {
159159

0 commit comments

Comments
 (0)