1
+ {
2
+ "js_completions" : [
3
+ [" $apply\t AngularJS" , " \\ $apply($0);" ],
4
+ [" $broadcast\t AngularJS" , " \\ $broadcast('${1:name}', ${2:arguments});" ],
5
+ [" $destroy\t AngularJS" , " \\ $destroy();" ],
6
+ [" $digest\t AngularJS" , " \\ $digest();" ],
7
+ [" $emit\t AngularJS" , " \\ $emit('${1:name}', ${2:arguments});" ],
8
+ [" $eval\t AngularJS" , " \\ $eval($0);" ],
9
+ [" $evalAsync\t AngularJS" , " \\ $evalAsync($0);" ],
10
+ [" $log.log\t AngularJS" , " \\ $log.log(${1});" ],
11
+ [" $new\t AngularJS" , " \\ $new(${1:isolate});" ],
12
+ [" $on\t AngularJS" , " \\ $on('${1:name}', ${2:function(){$3}});" ],
13
+ [" $parent\t AngularJS" , " \\ $parent." ],
14
+ [" $root\t AngularJS" , " \\ $root." ],
15
+ [" $routeProvider.when\t AngularJS" , " \\ $routeProvider.when('$1', {template: '$2', controller: $3});" ],
16
+ [" $watch\t AngularJS" , " \\ $watch('${1:name}', function(scope, newValue, oldValue) {\n\t $0\n });" ],
17
+ [" $http\t AngularJS" , " \\ $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 }});" ],
18
+ [" $filter\t AngularJS" , " \\ $filter('${1:currency|date|filter|json|limitTo|linky|lowercase|number|orderBy|uppercase}')(${2:array}${3:, ${4:expression}});" ],
19
+ [" angular.copy\t AngularJS" , " angular.copy(${1:source}${2:, ${3:destination}})" ],
20
+ [" angular.element\t AngularJS" , " angular.element(${1:element});" ],
21
+ [" angular.equals\t AngularJS" , " angular.equals(${1:object1}, ${2:object2});" ],
22
+ [" angular.extend\t AngularJS" , " angular.extend(${1:destinationObject}, ${2:sourceObject})" ],
23
+ [" angular.forEach\t AngularJS" , " angular.forEach(${1:values}, function(${2:value}, ${3:key}){\n\t $0\n });" ],
24
+ [" angular.isArray\t AngularJS" , " angular.isArray(${1:value})" ],
25
+ [" angular.isDefined\t AngularJS" , " angular.isDefined(${1:value})" ],
26
+ [" angular.isFunction\t AngularJS" , " angular.isFunction(${1:value})" ],
27
+ [" angular.isNumber\t AngularJS" , " angular.isNumber(${1:value})" ],
28
+ [" angular.isObject\t AngularJS" , " angular.isObject(${1:value})" ],
29
+ [" angular.isString\t AngularJS" , " angular.isString(${1:value})" ],
30
+ [" angular.lowercase\t AngularJS" , " angular.lowercase(${1:string});" ],
31
+ [" angular.noop\t AngularJS" , " angular.noop" ],
32
+ [" angular.toJson\t AngularJS" , " angular.toJson(${1})" ],
33
+ [" angular.uppercase\t AngularJS" , " angular.uppercase(${1:string});" ],
34
+ [" module\t AngularJS" , " /**\n * $1 Module\n *\n * ${2:Description}\n */\n angular.module('$1', [$3]).$0" ],
35
+ [" directive\t AngularJS" , " directive('$1', [${3:'$4', }function($4){\n\t ${5:// Runs during compile}\n\t return {\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\t link: function(\\ $scope, iElm, iAttrs, controller) {\n\t\t\t $0\n\t\t }\n\t };\n }]);" ]
36
+ ]
37
+ }
0 commit comments