|
1 | 1 | '.source.js, .source.coffee':
|
2 | 2 | '$apply':
|
3 | 3 | 'prefix': '.$'
|
4 |
| - 'body': '.\\$apply($0)$TM_JAVASCRIPT_TERMINATOR' |
| 4 | + 'body': '.$apply($0);' |
5 | 5 | '$broadcast':
|
6 | 6 | 'prefix': '.$'
|
7 |
| - 'body': '.\\$broadcast(\'${1:name}\', ${2:arguments})$TM_JAVASCRIPT_TERMINATOR' |
| 7 | + 'body': '.$broadcast(\'${1:name}\', ${2:arguments});' |
8 | 8 | '$destroy':
|
9 | 9 | 'prefix': '.$'
|
10 |
| - 'body': '.\\$destroy()$TM_JAVASCRIPT_TERMINATOR' |
| 10 | + 'body': '.$destroy();' |
11 | 11 | '$digest':
|
12 | 12 | 'prefix': '.$'
|
13 |
| - 'body': '.\\$digest()$TM_JAVASCRIPT_TERMINATOR' |
| 13 | + 'body': '.$digest();' |
14 | 14 | '$emit':
|
15 | 15 | 'prefix': '.$'
|
16 |
| - 'body': '.\\$emit(\'${1:name}\', ${2:arguments})$TM_JAVASCRIPT_TERMINATOR' |
| 16 | + 'body': '.$emit(\'${1:name}\', ${2:arguments});' |
17 | 17 | '$eval':
|
18 | 18 | 'prefix': '.$'
|
19 |
| - 'body': '.\\$eval($0)$TM_JAVASCRIPT_TERMINATOR' |
| 19 | + 'body': '.$eval($0);' |
20 | 20 | '$evalAsync':
|
21 | 21 | 'prefix': '.$'
|
22 |
| - 'body': '.\\$evalAsync($0)$TM_JAVASCRIPT_TERMINATOR' |
| 22 | + 'body': '.$evalAsync($0);' |
23 | 23 | '$new':
|
24 | 24 | 'prefix': '.$'
|
25 |
| - 'body': '.\\$new(${1:isolate})$TM_JAVASCRIPT_TERMINATOR' |
| 25 | + 'body': '.$new(${1:isolate});' |
26 | 26 | '$on':
|
27 | 27 | 'prefix': '.$'
|
28 |
| - 'body': '.\\$on(\'${1:name}\', ${2:function(){$3}})$TM_JAVASCRIPT_TERMINATOR' |
| 28 | + 'body': '.$on(\'${1:name}\', ${2:function(){$3}});' |
29 | 29 | '$parent':
|
30 | 30 | 'prefix': '.$'
|
31 |
| - 'body': '.\\$parent.' |
| 31 | + 'body': '.$parent.' |
32 | 32 | '$root':
|
33 | 33 | 'prefix': '.$'
|
34 |
| - 'body': '.\\$root.' |
| 34 | + 'body': '.$root.' |
35 | 35 | '$watch':
|
36 | 36 | 'prefix': '.$'
|
37 |
| - 'body': '.\\$watch(\'${1:name}\', function(scope, newValue, oldValue) {\n\t$0\n})$TM_JAVASCRIPT_TERMINATOR' |
| 37 | + 'body': '.$watch(\'${1:name}\', function(scope, newValue, oldValue) {\n\t$0\n});' |
38 | 38 | '$http':
|
39 | 39 | 'prefix': 'http'
|
40 |
| - 'body': '\\$http(\'${1:GET|POST|PUT|DELETE}\', ${2:url}${3:, ${4:post}}, ${5:function(status, response){\n\t${6:// success}\n}}${7:, function(status, response){\n\t${8:// error}\n}})$TM_JAVASCRIPT_TERMINATOR' |
| 40 | + 'body': '$http(\'${1:GET|POST|PUT|DELETE}\', ${2:url}${3:, ${4:post}}, ${5:function(status, response){\n\t${6:// success}\n}}${7:, function(status, response){\n\t${8:// error}\n}});' |
41 | 41 | 'copy':
|
42 | 42 | 'prefix': 'copy'
|
43 | 43 | 'body': 'angular.copy(${1:source}${2:, ${3:destination}})'
|
44 | 44 | 'directive':
|
45 | 45 | 'prefix': 'dir'
|
46 |
| - 'body': 'directive(\'$1\', [${3:\'$4\', }function($4){\n\t${5:// Runs during compile}\n\treturn {\n\t\t// name: \'\',\n\t\t// priority: 1,\n\t\t// terminal: true,\n\t\t// scope: {}, // {} = isolate, true = child, false/undefined = no change\n\t\t// controller: function(\\$scope, \\$element, \\$attrs, \\$transclue) {},\n\t\t// require: \'ngModel\', // Array = multiple requires, ? = optional, ^ = check parent elements\n\t\t// restrict: \'A\', // E = Element, A = Attribute, C = Class, M = Comment\n\t\t// template: \'\',\n\t\t// templateUrl: \'\',\n\t\t// replace: true,\n\t\t// transclude: true,\n\t\t// compile: function(tElement, tAttrs, function transclude(function(scope, cloneLinkingFn){ return function linking(scope, elm, attrs){}})),\n\t\tlink: function(\\$scope, iElm, iAttrs, controller) {\n\t\t\t$0\n\t\t}\n\t};\n}])$TM_JAVASCRIPT_TERMINATOR' |
| 46 | + 'body': 'directive(\'$1\', [${3:\'$4\', }function($4){\n\t${5:// Runs during compile}\n\treturn {\n\t\t// name: \'\',\n\t\t// priority: 1,\n\t\t// terminal: true,\n\t\t// scope: {}, // {} = isolate, true = child, false/undefined = no change\n\t\t// controller: function(\\$scope, \\$element, \\$attrs, \\$transclue) {},\n\t\t// require: \'ngModel\', // Array = multiple requires, ? = optional, ^ = check parent elements\n\t\t// restrict: \'A\', // E = Element, A = Attribute, C = Class, M = Comment\n\t\t// template: \'\',\n\t\t// templateUrl: \'\',\n\t\t// replace: true,\n\t\t// transclude: true,\n\t\t// compile: function(tElement, tAttrs, function transclude(function(scope, cloneLinkingFn){ return function linking(scope, elm, attrs){}})),\n\t\tlink: function(\\$scope, iElm, iAttrs, controller) {\n\t\t\t$0\n\t\t}\n\t};\n}]);' |
47 | 47 | 'element':
|
48 | 48 | 'prefix': 'el'
|
49 |
| - 'body': 'angular.element(${1:element})$TM_JAVASCRIPT_TERMINATOR' |
| 49 | + 'body': 'angular.element(${1:element});' |
50 | 50 | 'equals':
|
51 | 51 | 'prefix': 'eq'
|
52 |
| - 'body': 'angular.equals(${1:object1}, ${2:object2})$TM_JAVASCRIPT_TERMINATOR' |
| 52 | + 'body': 'angular.equals(${1:object1}, ${2:object2});' |
53 | 53 | 'extend':
|
54 | 54 | 'prefix': 'extend'
|
55 | 55 | 'body': 'angular.extend(${1:destinationObject}, ${2:sourceObject})'
|
56 | 56 | '$filter':
|
57 | 57 | 'prefix': 'filter'
|
58 |
| - 'body': '\\$filter(\'${1:currency|date|filter|json|limitTo|linky|lowercase|number|orderBy|uppercase}\')(${2:array}${3:, ${4:expression}})$TM_JAVASCRIPT_TERMINATOR' |
| 58 | + 'body': '$filter(\'${1:currency|date|filter|json|limitTo|linky|lowercase|number|orderBy|uppercase}\')(${2:array}${3:, ${4:expression}});' |
59 | 59 | 'forEach':
|
60 | 60 | 'prefix': 'each'
|
61 |
| - 'body': 'angular.forEach(${1:values}, function(${2:value}, ${3:key}){\n\t$0\n})$TM_JAVASCRIPT_TERMINATOR' |
| 61 | + 'body': 'angular.forEach(${1:values}, function(${2:value}, ${3:key}){\n\t$0\n});' |
62 | 62 | 'isArray':
|
63 | 63 | 'prefix': 'is'
|
64 | 64 | 'body': 'angular.isArray(${1:value})'
|
|
79 | 79 | 'body': 'angular.isString(${1:value})'
|
80 | 80 | 'lowercase':
|
81 | 81 | 'prefix': 'lower'
|
82 |
| - 'body': 'angular.lowercase(${1:string})$TM_JAVASCRIPT_TERMINATOR' |
| 82 | + 'body': 'angular.lowercase(${1:string});' |
83 | 83 | 'module':
|
84 | 84 | 'prefix': 'mod'
|
85 | 85 | 'body': '/**\n * $1 Module\n *\n * ${2:Description}\n */\nangular.module(\'$1\', [$3]).$0'
|
|
88 | 88 | 'body': 'angular.noop'
|
89 | 89 | 'uppercase':
|
90 | 90 | 'prefix': 'upper'
|
91 |
| - 'body': 'angular.uppercase(${1:string})$TM_JAVASCRIPT_TERMINATOR' |
| 91 | + 'body': 'angular.uppercase(${1:string});' |
92 | 92 | '.js':
|
93 | 93 | '$routeProvider.when':
|
94 | 94 | 'prefix': 'route'
|
95 |
| - 'body': '\\$routeProvider.when(\'$1\', {template: \'$2\', controller: $3})$TM_JAVASCRIPT_TERMINATOR' |
| 95 | + 'body': '\\$routeProvider.when(\'$1\', {template: \'$2\', controller: $3});' |
96 | 96 | '.text.html':
|
97 | 97 | '|currency':
|
98 | 98 | 'prefix': '|'
|
|
121 | 121 | '|uppercase':
|
122 | 122 | 'prefix': '|'
|
123 | 123 | 'body': '|uppercase'
|
124 |
| -'.text.html .meta.tag': |
| 124 | +'.text.html, .meta.tag': |
125 | 125 | 'ngRepeat':
|
126 | 126 | 'prefix': 'repeat'
|
127 | 127 | 'body': 'ng-repeat="${1:(${2:key}, ${3:value})} in ${4:dataset}"'
|
|
0 commit comments