|
54 | 54 | ["$http_verbose\tAngularJS", "\\$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}});"], |
55 | 55 | ["$filter_verbose\tAngularJS", "\\$filter('${1:currency|date|filter|json|limitTo|linky|lowercase|number|orderBy|uppercase}')(${2:array}${3:, ${4:expression}});"], |
56 | 56 | ["$interval_verbose\tAngularJS", "\\$interval(${1:fn}${2:, ${3:delay}${4:, ${5:count}}${6:, ${7:invokeApply}}})"], |
57 | | - ["$timeout_verbose\tAngularJS", "\\$timeout(${1:fn}${2:, ${3:delay}${4:, ${5:invokeApply}}})"], |
58 | | - |
59 | | - ["$apply\tAngularJS", "\\$apply($0);"], |
60 | | - ["$broadcast\tAngularJS", "\\$broadcast('${1:name}', ${2:arguments});"], |
61 | | - ["$destroy\tAngularJS", "\\$destroy();"], |
62 | | - ["$digest\tAngularJS", "\\$digest();"], |
63 | | - ["$emit\tAngularJS", "\\$emit('${1:name}', ${2:arguments});"], |
64 | | - ["$eval\tAngularJS", "\\$eval($0);"], |
65 | | - ["$evalAsync\tAngularJS", "\\$evalAsync($0);"], |
66 | | - ["$new\tAngularJS", "\\$new(${1:isolate});"], |
67 | | - ["$on\tAngularJS", "\\$on('${1:name}', ${2:function(){$3}});"], |
68 | | - ["$parent\tAngularJS", "\\$parent."], |
69 | | - ["$root\tAngularJS", "\\$root."], |
70 | 57 | ["$timeout\tAngularJS", "\\$timeout(${1:function()\\{\n\t$2\n\\}}, ${3:delay});"], |
71 | | - ["$watch\tAngularJS", "\\$watch('${1:name}', function(newValue, oldValue, scope) {\n\t$0\n});"], |
| 58 | + |
| 59 | + // ["$apply\tAngularJS", "\\$apply($0);"], |
| 60 | + // ["$broadcast\tAngularJS", "\\$broadcast('${1:name}', ${2:arguments});"], |
| 61 | + // ["$destroy\tAngularJS", "\\$destroy();"], |
| 62 | + // ["$digest\tAngularJS", "\\$digest();"], |
| 63 | + // ["$emit\tAngularJS", "\\$emit('${1:name}', ${2:arguments});"], |
| 64 | + // ["$eval\tAngularJS", "\\$eval($0);"], |
| 65 | + // ["$evalAsync\tAngularJS", "\\$evalAsync($0);"], |
| 66 | + // ["$new\tAngularJS", "\\$new(${1:isolate});"], |
| 67 | + // ["$on\tAngularJS", "\\$on('${1:name}', ${2:function(){$3}});"], |
| 68 | + // ["$parent\tAngularJS", "\\$parent."], |
| 69 | + // ["$root\tAngularJS", "\\$root."], |
| 70 | + // ["$timeout\tAngularJS", "\\$timeout(${1:function()\\{\n\t$2\n\\}}, ${3:delay});"], |
| 71 | + // ["$watch\tAngularJS", "\\$watch('${1:name}', function(newValue, oldValue, scope) {\n\t$0\n});"], |
72 | 72 |
|
73 | 73 | ["module\tAngularJS", "/**\n* $1 Module\n*\n* ${2:Description}\n*/\nangular.module('$1', [$3]).$0"], |
74 | 74 | ["directive\tAngularJS", "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, \\$transclude) {},\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}]);"] |
|
229 | 229 | ["$eval\tAngularJS", "\\$eval(${1:${2:expression}${3:, ${4:locals}}})"], |
230 | 230 | ["$evalAsync\tAngularJS", "\\$evalAsync(${1:expression})"], |
231 | 231 | ["$new\tAngularJS", "\\$new(${1:isolate})"], |
232 | | - ["$on\tAngularJS", "\\$on($1:name}, ${2:listener})"], |
233 | | - ["$watch\tAngularJS", "\\$watch(${1:watchExpression}${2:, ${3:listener}${4:, ${5:objectEquality}}})"], |
234 | | - ["$watchCollection\tAngularJS", "\\$watchCollection(${1:obj}, ${2:listener})"], |
| 232 | + ["$on\tAngularJS", "\\$on('${1:name}', ${2:function(){$3}});"], |
| 233 | + ["$parent\tAngularJS", "\\$parent."], |
| 234 | + ["$root\tAngularJS", "\\$root."], |
| 235 | + ["$watch\tAngularJS", "\\$watch('${1:watchExpression}', function(newValue, oldValue, scope) {\n\t$2\n}${3:, ${4:objectEquality}});"], |
| 236 | + // ["$watch\tAngularJS", "\\$watch(${1:watchExpression}${2:, ${3:listener}${4:, ${5:objectEquality}}})"], |
| 237 | + ["$watchCollection\tAngularJS", "\\$watchCollection(${1:obj}, function(newCollection, oldCollection, scope) {\n\t$2\n});"], |
235 | 238 | ["$id\tAngularJS", "\\$id"] |
236 | 239 | ], |
237 | 240 | "$rootScopeProvider": [ |
|
0 commit comments