Skip to content

Commit f523ac0

Browse files
authored
Merge pull request #48 from ansy/master
removal of depreciated angular promise method
2 parents adc980a + 36b13c3 commit f523ac0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/tour_helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252

5353
return $http.get(templateUrl, {
5454
cache: $templateCache
55-
}).success(function (template) {
56-
if (template) {
57-
return compileTemplate(template, scope);
55+
}).then(function (response) {
56+
if (response.data) {
57+
return compileTemplate(response.data, scope);
5858
}
5959
return '';
6060
});

0 commit comments

Comments
 (0)