From 19a651b94e564b9b8d50c49b794b0132f830bbac Mon Sep 17 00:00:00 2001 From: Sukma Nugraha Date: Mon, 30 Jan 2017 23:29:50 +0700 Subject: [PATCH] Fix for issue #946 - Update angular-ui-router version to 0.4.2 (https://github.com/angular-ui/ui-router/issues/2889) Additional fix: - Replace deprecated $http.success/error in blog.service.js as it also produces error log in console window. --- app/services/blog.service.js | 5 ++--- package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/services/blog.service.js b/app/services/blog.service.js index 3047dcceb..fe632e3d6 100644 --- a/app/services/blog.service.js +++ b/app/services/blog.service.js @@ -19,7 +19,7 @@ import X2JS from 'xml2js' // fetch blog rss feed $http.get(CONSTANTS.BLOG_LOCATION) - .success(function(data) { + .then(function(data) { // parse the blog rss feed using x2js var parseString = X2JS.parseString parseString(data.trim(), function (err, res) { @@ -38,8 +38,7 @@ import X2JS from 'xml2js' deferred.resolve(result) }) - }) - .error(function(error) { + }, function(error) { deferred.reject(error) }) diff --git a/package.json b/package.json index 1c9d60547..fec389a11 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "angular-sanitize": "^1.4.9", "angular-storage": "0.0.13", "angular-touch": "^1.4.9", - "angular-ui-router": "^0.2.16", + "angular-ui-router": "^0.4.2", "angularjs-toaster": "^1.0.0", "appirio-styles": "0.x.x", "appirio-tech-ng-iso-constants": "^1.0.6", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy