This repository was archived by the owner on Sep 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -384,6 +384,13 @@ $scope.$1 = function($2) {
384
384
};
385
385
```
386
386
387
+ ##### ngcp
388
+ ```
389
+ $1Ctrl.prototype.$2 = function $2($3) {
390
+ $4
391
+ };
392
+ ```
393
+
387
394
##### ngon
388
395
```
389
396
$scope.$on('$1', function(event, $2) {
@@ -410,6 +417,26 @@ var $1 = function($scope, $2) {
410
417
}
411
418
```
412
419
420
+ ##### ngc$
421
+ ```
422
+ $1Ctrl.$inject = [$scope, '$2'];
423
+ function $1Ctrl($scope, $2) {
424
+ $4
425
+ }
426
+ angular.module($3).controller('$1Ctrl', $1Ctrl);
427
+ ```
428
+
429
+ ##### ngdoc
430
+ ```
431
+ /**
432
+ * @ngdoc ${1:function}
433
+ * @name $2
434
+ * @description
435
+ * $3
436
+ *
437
+ */
438
+ ```
439
+
413
440
##### nghttp
414
441
```
415
442
$http({method: '${1:GET}', url: '$2'})
Original file line number Diff line number Diff line change 123
123
$3
124
124
};
125
125
"""
126
+ " controller prototype method" :
127
+ " prefix" : " ngcp"
128
+ " body" : """
129
+ $1Ctrl.prototype.$2 = function $2($3) {
130
+ $4
131
+ };
132
+ """
126
133
" $scope.$on" :
127
134
" prefix" : " ngon"
128
135
" body" : """
147
154
" body" : """
148
155
var $1 = function($scope, $2) {
149
156
$3
157
+ };
158
+ """
159
+ " controller $inject Syntax" :
160
+ " prefix" : " ngc$"
161
+ " body" : """
162
+ $1Ctrl.$inject = [$scope, '$2'];
163
+ function $1Ctrl($scope, $2) {
164
+ $4
150
165
}
166
+ angular.module($3).controller('$1Ctrl', $1Ctrl);
167
+ """
168
+ " ngdocs comment" :
169
+ " prefix" : " ngdoc"
170
+ " body" : """
171
+ /**
172
+ * @ngdoc ${1:function}
173
+ * @name $2
174
+ * @description
175
+ * $3
176
+ *
177
+ */
151
178
"""
152
179
" $http" :
153
180
" prefix" : " nghttp"
You can’t perform that action at this time.
0 commit comments