Just use localStorage
not $localStorage
cause $localStorage
has to be injected whereas localStorage
comes by default in angularjs
and it works without you having to inject anything. I have worked on it.
$ionicPlatform.ready(function() { localStorage.message = "whatever";});
In Controller:
$scope.message = localStorage.message;
In View:
<div>{{message}}</div>