Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit ee7e160

Browse files
committed
Merge pull request #22 from samson212/patch-1
fixing $watch completion argument order
2 parents 25b5c81 + 3937527 commit ee7e160

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎AngularJS-js-completions.sublime-settings

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
["$parent\tAngularJS", "\\$parent."],
1414
["$root\tAngularJS", "\\$root."],
1515
["$routeProvider.when\tAngularJS", "\\$routeProvider.when('$1', {template: '$2', controller: $3});"],
16-
["$watch\tAngularJS", "\\$watch('${1:name}', function(scope, newValue, oldValue) {\n\t$0\n});"],
16+
["$watch\tAngularJS", "\\$watch('${1:name}', function(newValue, oldValue, scope) {\n\t$0\n});"],
1717
["$http\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}});"],
1818
["$filter\tAngularJS", "\\$filter('${1:currency|date|filter|json|limitTo|linky|lowercase|number|orderBy|uppercase}')(${2:array}${3:, ${4:expression}});"],
1919
["angular.copy\tAngularJS", "angular.copy(${1:source}${2:, ${3:destination}})"],
@@ -34,4 +34,4 @@
3434
["module\tAngularJS", "/**\n* $1 Module\n*\n* ${2:Description}\n*/\nangular.module('$1', [$3]).$0"],
3535
["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// cont­rol­ler: 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}]);"]
3636
]
37-
}
37+
}

0 commit comments

Comments
 (0)