Failed to use $localStorage

angular.module(‘starter’, [‘ionic’, ‘starter.controllers’,‘ngCordova’])

.run(function($ionicPlatform, $localstorage , $cordovaPush) {
$ionicPlatform.ready(function() {
console.log($localstorage);
})
})

What’s wrong with above code?

I got error of Uncaught Error: [$injector:unpr] Unknown provider: $localstorageProvider <- $localstorage

Shouldn’t it be $localStorage ? with a capital S

1 Like