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

Commit 165ab10

Browse files
committed
Adds snippet, Fixes #44
1 parent 51c36d1 commit 165ab10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎AngularJS-js-completions.sublime-settings

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
["$root\tAngularJS", "\\$root."],
1515
["$routeProvider.when\tAngularJS", "\\$routeProvider.when('$1', {template: '$2', controller: $3});"],
1616
["$routeProvider.otherwise\tAngularJS", "\\$routeProvider.otherwise({redirectTo: '$1'})"],
17+
["$timeout\tAngularJS", "\\$timeout(${1:function()\\{\n\t$2\n\\}}, ${3:delay});"],
1718
["$watch\tAngularJS", "\\$watch('${1:name}', function(newValue, oldValue, scope) {\n\t$0\n});"],
1819
["$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}});"],
1920
["$filter\tAngularJS", "\\$filter('${1:currency|date|filter|json|limitTo|linky|lowercase|number|orderBy|uppercase}')(${2:array}${3:, ${4:expression}});"],

0 commit comments

Comments
 (0)