I'm sending a JSON object to localStorage
:
window.localStorage.setItem('tarefa',aux);
And I try to get this object on another controller like this:
$scope.tarefa=window.localStorage.getItem('tarefa')
However, when displaying on the console this $scope.tarefa.id
(property of the passed object) gives undefined
. This is for this property or for anything else.