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
74VueJS Snippets for Atom
85
9- ---
6+
107
118## Types
129
3633 //Component Data
3734 example: true,
3835 foo: "bar"
36+
37+
38+
3939 }
4040 },
4141
5858 prefix: validator
5959
6060 body:
61- ```
61+ ``` javascript
6262 Vue .validator (" validatorName" , function (val ) {
6363 return true
6464 });
7070
7171 body:
7272
73- ```
73+ ``` javascript
7474 [..]
7575 validators: {
7676 nameOfValidator : function (val ) {
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