This is my ctrl:
app.controller(\'ctrl\', function ($window, $scope) { $scope.initData = [ { firstName: \"John\", lastNa
On every page load you are setting new initData and updating the local storage... Instead you should check for existing localstorage data and use that before using the mocked initData