Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #46 from yusiswtor/master
Browse files Browse the repository at this point in the history
Update js-templates.cson (fix deprecated promise usage)
  • Loading branch information
outsideris committed Dec 8, 2015
2 parents 29e2830 + b76383e commit 06bd685
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions snippets/js-templates.cson
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@
"prefix": "nghttp"
"body": """
$http({method: '${1:GET}', url: '$2'})
.success(function(data, status, headers, config) {
$3
})
.error(function(data, status, headers, config) {
$4
});
.then(function successCallback(data, status, headers, config) {
$3
},
function errorCallback(data, status, headers, config) {
$4
});
"""
"copy":
"prefix": "ngcopy"
Expand Down

0 comments on commit 06bd685

Please sign in to comment.