As per documentation :-
var app = angular.module('app', ['ngStorage']) .config(['$localStorageProvider', function ($localStorageProvider) { $localStorageProvider.get('MyKey');//gets $localStorageProvider.set('MyKey', { k: 'value' });/sets }]);
Or
localStorage.setItem('message', 'helloworld');//saves in developer tools $scope.getItem=localStorage.getIem('message');