Skip to content

Commit

Permalink
Augment the update example to turn black if the server is not respond…
Browse files Browse the repository at this point in the history
…ing.
  • Loading branch information
brendandburns committed Jul 25, 2014
1 parent cd3ead9 commit 854b9e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/update-demo/local/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var updateColor = function($http, server) {
console.log(data);
})
.error(function(data) {
server.color = "#000";
console.log(data);
});
};
Expand Down

0 comments on commit 854b9e1

Please sign in to comment.