From 854b9e14bd95f369fc80ce10247c92daad4ff5e7 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Thu, 24 Jul 2014 21:46:35 -0700 Subject: [PATCH] Augment the update example to turn black if the server is not responding. --- examples/update-demo/local/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/update-demo/local/script.js b/examples/update-demo/local/script.js index 47581a44883..0a833bd58c8 100644 --- a/examples/update-demo/local/script.js +++ b/examples/update-demo/local/script.js @@ -23,6 +23,7 @@ var updateColor = function($http, server) { console.log(data); }) .error(function(data) { + server.color = "#000"; console.log(data); }); };