Skip to content

Commit

Permalink
Merge pull request #88 from jmmartinez84/master
Browse files Browse the repository at this point in the history
Migration from angular 1.4 to angular 1.6
  • Loading branch information
adrienlauer authored Jun 4, 2018
2 parents ec0b000 + 912ca20 commit 84ecf24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hypermedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ define([
apiPromises.push(
$http({ method: 'GET', url: apiUrl, headers: { 'accept': 'application/json-home, application/json' } })

.success(function (home) {
.then(function (home) {

if (!home.resources || !angular.isObject(home.resources)) {
throw new Error('Json-home resources does not have a "resources" root element');
Expand Down

0 comments on commit 84ecf24

Please sign in to comment.