See the plunker given in documentation : http://plnkr.co/edit/YiG28KTFdkeFXskolZqs?p=preview
Open browser's console, click 2 times on "Clear localStorage" :
- The first time you click you get the expected behavior : localStorage[ngStorage-x] = 999
- The second time you click the localStorage is completely deleted