define(['app'], function (app) {
  "use strict";

  return app.service('storageService', ['$window', function (win) {
      this.available = 'localStorage' in win;

      this.get = function (key) {
        return win.localStorage.getItem(key);
      };

      this.set = function (key, value) {
        return win.localStorage.setItem(key, value);
      };

      this.setJSON = function (key, value) {
        return this.set(key, win.JSON.stringify(value));
      };

      this.getJSON = function (key) {
        return win.JSON.parse(this.get(key));
      };
  }]);
});

@@ -6,16 +6,27 @@
 e(%5B'app'
+, 'angular'
 %5D, funct
@@ -33,16 +33,25 @@
 ion (app
+, angular
 ) %7B%0A  %22u
@@ -450,26 +450,22 @@
 ey, 
-win.JSON.stringify
+angular.toJson
 (val
@@ -537,22 +537,24 @@
 urn 
-win.JSON.parse
+angular.fromJson
 (thi

Use angular's JSON lib, since it strips off $hashKey that angular adds to scope objects