Augment the update example to turn black if the server is not responding.

This commit is contained in:
Brendan Burns 2014-07-24 21:46:35 -07:00
parent e9731c7b1f
commit 19cbf37f5e
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ var updateColor = function($http, server) {
console.log(data);
})
.error(function(data) {
server.color = "#000";
console.log(data);
});
};