Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 19a651b

Browse files
committedJan 30, 2017
Fix for issue topcoder-archive#946
- Update angular-ui-router version to 0.4.2 (angular-ui/ui-router#2889) Additional fix: - Replace deprecated $http.success/error in blog.service.js as it also produces error log in console window.
1 parent 688a6b7 commit 19a651b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎app/services/blog.service.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import X2JS from 'xml2js'
1919

2020
// fetch blog rss feed
2121
$http.get(CONSTANTS.BLOG_LOCATION)
22-
.success(function(data) {
22+
.then(function(data) {
2323
// parse the blog rss feed using x2js
2424
var parseString = X2JS.parseString
2525
parseString(data.trim(), function (err, res) {
@@ -38,8 +38,7 @@ import X2JS from 'xml2js'
3838

3939
deferred.resolve(result)
4040
})
41-
})
42-
.error(function(error) {
41+
}, function(error) {
4342
deferred.reject(error)
4443
})
4544

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"angular-sanitize": "^1.4.9",
5252
"angular-storage": "0.0.13",
5353
"angular-touch": "^1.4.9",
54-
"angular-ui-router": "^0.2.16",
54+
"angular-ui-router": "^0.4.2",
5555
"angularjs-toaster": "^1.0.0",
5656
"appirio-styles": "0.x.x",
5757
"appirio-tech-ng-iso-constants": "^1.0.6",

0 commit comments

Comments
 (0)
Please sign in to comment.