Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Can the storage type be set at runtime, as I need to use both session and local storage depending on the scenario?
    localStorageService.set(key, dataObject) // returns true
    localStorage.getItem(key); // this is null... but why?
    howdy, any ideas on this ^
    oy.. typo.. nevermind
    Puneet Aggarwal
    Is anybody here?
    hii all.how to store json data on localstorage?
    Muhamad Ryan Efendi
    cant load localStorageServiceProvider , can anyone help me ?
    Hey Guys, I have written a new function to update/create a key on a specific location.
    var _setLocalStorageData = function (storageName, keyName, keyValue) {
    var storageData = localStorageService.get(storageName);
    if (storageData) {
    storageData[keyName] = keyValue;
    localStorageService.set(storageName, storageData);
    else {
    localStorageService.set(storageName, { keyName: keyValue });
    If the storage location does not exists, i am trying to create new with the keyName and keyValue in the else statement
    After the line execution i see storage with key as keyName but not the string value i have provided to the variable. How can i achieve this ?
    Ken Petti
    does this module support chrome packaged apps, that don't have access to localstorage?

    Hi all! I've got a silly question. I hope it works or there maybe is a way to fix around this.

    I want to set in the config how growl messages are handled.
    I want the user the dynamically to be able to set if a growl message needs to clicked away by the user itself or that a delay of 5000ms should be used.

    I need to do this in the config of Angular and i cannot inject "localStorageService" only the "localStorageServiceProvider".

    This is the code so far, but it doesn't work sadly.
    .config(['NotificationProvider', 'localStorageServiceProvider', 'localStorageService',
    function (NotificationProvider, localStorageServiceProvider, localStorageService) {
        localStorageService.set('growlNotificationSettings', {
            delay: null,
            X: 'right',
            Y: 'top'
            var growlNotificationSettings = localStorageService.get('growlNotificationSettings');
                delay: growlNotificationSettings.delay,
                startTop: 20,
                startRight: 10,
                verticalSpacing: 20,
                horizontalSpacing: 20,
                positionX: growlNotificationSettings.X,
                positionY: growlNotificationSettings.Y
    Priyan Perera
    please have a look at my issue.
    I am using local storage to persist authentication data. But, when I access the stored data from the interceptor, it returns null. I have created a question in stackoverflow. http://stackoverflow.com/questions/41582295/angular-local-storage-returning-null-on-saved-value
    Dan Knight
    Hi. Can I use both session and local storage at the same time with this module?
    my website creates local storage even whit empty page
    who creates it because chrome shows one cookies in use even everything is empty
    or only creates the storage for the content ?
    can we prevent this