|
1 | 1 | - trigger: ngfilter |
2 | | - description: Angular filter using John Papa's Angular style guide |
| 2 | + description: "Angular filter using John Papa's Angular style guide" |
3 | 3 | scope: javascript |
4 | 4 | text: | |
5 | 5 | (function () { |
|
20 | 20 | })(); |
21 | 21 |
|
22 | 22 | - trigger: ngservice |
23 | | - description: Angular service using John Papa's Angular style guide |
| 23 | + description: "Angular service using John Papa's Angular style guide" |
24 | 24 | scope: javascript |
25 | 25 | text: | |
26 | 26 | (function () { |
|
34 | 34 | /* @ngInject */ |
35 | 35 | function ${2:Service}(${3:dependencies}) { |
36 | 36 | this.${4:func} = ${4:func}; |
37 | | -
|
| 37 | + |
38 | 38 | //////////////// |
39 | | -
|
| 39 | + |
40 | 40 | function ${4:func}() { |
41 | | -
|
| 41 | + |
42 | 42 | } |
43 | 43 | } |
44 | 44 | })(); |
45 | 45 |
|
46 | 46 | - trigger: ngapp |
47 | | - description: Angular module app definition using John Papa's Angular style guide |
| 47 | + description: "Angular module app definition using John Papa's Angular style guide" |
48 | 48 | scope: javascript |
49 | 49 | text: | |
50 | 50 | (function () { |
|
58 | 58 | })(); |
59 | 59 |
|
60 | 60 | - trigger: ngfactory |
61 | | - description: Angular factory using John Papa's Angular style guide |
| 61 | + description: "Angular factory using John Papa's Angular style guide" |
62 | 62 | scope: javascript |
63 | 63 | text: | |
64 | 64 | (function () { |
|
85 | 85 | })(); |
86 | 86 |
|
87 | 87 | - trigger: ngdirective |
88 | | - description: Angular directive using John Papa's Angular style guide |
| 88 | + description: "Angular directive using John Papa's Angular style guide" |
89 | 89 | scope: javascript |
90 | 90 | text: | |
91 | 91 | (function () { |
|
127 | 127 | })(); |
128 | 128 |
|
129 | 129 | - trigger: ngcontroller |
130 | | - description: Angular controller using John Papa's Angular style guide |
| 130 | + description: "Angular controller using John Papa's Angular style guide" |
131 | 131 | scope: javascript |
132 | 132 | text: | |
133 | 133 | (function() { |
|
154 | 154 | })(); |
155 | 155 |
|
156 | 156 | - trigger: ngstate |
157 | | - description: Angular UI-Router state using John Papa's Angular style guide |
| 157 | + description: "Angular UI-Router state using John Papa's Angular style guide" |
158 | 158 | scope: javascript |
159 | 159 | text: | |
160 | | - state('${1:state}', { |
161 | | - url: '${2:/url}' |
162 | | - templateUrl: '${3:template}.html', |
163 | | - controller: '${4:Controller}' |
164 | | - controllerAs: '${5:vm}' |
165 | | - }) |
166 | | -
|
| 160 | + state('${1:state}', { |
| 161 | + url: '${2:/url}' |
| 162 | + templateUrl: '${3:template}.html', |
| 163 | + controller: '${4:Controller}' |
| 164 | + controllerAs: '${5:vm}' |
| 165 | + }) |
167 | 166 |
|
168 | 167 | - trigger: ngmodule |
169 | | - description: Angular module getter using John Papa's Angular style guide |
| 168 | + description: "Angular module getter using John Papa's Angular style guide" |
170 | 169 | scope: javascript |
171 | 170 | text: | |
172 | | - angular |
173 | | - .module('${1:module}') |
| 171 | + angular |
| 172 | + .module('${1:module}') |
174 | 173 |
|
175 | 174 | - trigger: ngconfig |
176 | | - description: Angular config phase function using John Papa's Angular style guide |
| 175 | + description: "Angular config phase function using John Papa's Angular style guide" |
177 | 176 | scope: javascript |
178 | 177 | text: | |
179 | | - .config(${1:configuration}) |
180 | | -
|
181 | | - ${1:configuration}.$inject = ['${2:dependencies}']; |
182 | | -
|
183 | | - /* @ngInject */ |
184 | | - function ${1:configuration} (${2:dependencies}) { |
185 | | -
|
186 | | - } |
| 178 | + .config(${1:configuration}) |
| 179 | + |
| 180 | + ${1:configuration}.$inject = ['${2:dependencies}']; |
| 181 | + |
| 182 | + /* @ngInject */ |
| 183 | + function ${1:configuration} (${2:dependencies}) { |
| 184 | + |
| 185 | + } |
187 | 186 |
|
188 | 187 | - trigger: ngrun |
189 | | - description: Angular run phase function using John Papa's Angular style guide |
| 188 | + description: "Angular run phase function using John Papa's Angular style guide" |
190 | 189 | scope: javascript |
191 | 190 | text: | |
192 | | - .run(${1:runFn}) |
| 191 | + .run(${1:runFn}) |
| 192 | + |
| 193 | + ${1:runFn}.$inject = ['${2:dependencies}']; |
| 194 | + |
| 195 | + /* @ngInject */ |
| 196 | + function ${1:runFn} (${2:dependencies}) { |
| 197 | + |
| 198 | + } |
193 | 199 |
|
194 | | - ${1:runFn}.$inject = ['${2:dependencies}']; |
| 200 | +- trigger: ngroute |
| 201 | + description: "Angular routeProvider using John Papa's Angular style guide" |
| 202 | + scope: javascript |
| 203 | + mTime: 1426416190583 |
| 204 | + text: | |
| 205 | + (function() { |
| 206 | + 'use strict'; |
| 207 | + |
| 208 | + angular |
| 209 | + .module( '${1:app}' ) |
| 210 | + .config( function( $routeProvider ) { |
| 211 | + $routeProvider |
| 212 | + .when( '/', { |
| 213 | + templateUrl: '${2:home}.html', |
| 214 | + controller: '${3:Home}', |
| 215 | + controllerAs: 'vm' |
| 216 | + }) |
| 217 | + |
| 218 | + }); |
| 219 | + })(); |
195 | 220 |
|
196 | | - /* @ngInject */ |
197 | | - function ${1:runFn} (${2:dependencies}) { |
| 221 | +- trigger: ngwhen |
| 222 | + description: "Defines a route for routeProvider using John Papa's style guide" |
| 223 | + scope: javascript |
| 224 | + mTime: 1426416499728 |
| 225 | + text: | |
| 226 | + .when( '/${1:home}', { |
| 227 | + templateUrl: '${1:home}.html', |
| 228 | + controller: '${2:Home}', |
| 229 | + controllerAs: '${3:vm}' |
| 230 | + }) |
198 | 231 |
|
199 | | - } |
|
0 commit comments