Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    m-davison
    @m-davison
    Can the storage type be set at runtime, as I need to use both session and local storage depending on the scenario?
    Kyle
    @enlightenmental
    localStorageService.set(key, dataObject) // returns true
    localStorage.getItem(key); // this is null... but why?
    howdy, any ideas on this ^
    Kyle
    @enlightenmental
    oy.. typo.. nevermind
    Puneet Aggarwal
    @puneetagg
    Hi..
    Is anybody here?
    sherinsteaphan
    @sherinsteaphan
    hii all.how to store json data on localstorage?
    Muhamad Ryan Efendi
    @ryanzeroes_twitter
    cant load localStorageServiceProvider , can anyone help me ?
    Pradeep
    @pradeepadkm
    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
    @citizenken
    does this module support chrome packaged apps, that don't have access to localstorage?
    Rick
    @rickerd

    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) {
        localStorageServiceProvider
            .setPrefix('pip')
            .setStorageType('sessionStorage');
    
        localStorageService.set('growlNotificationSettings', {
            delay: null,
            X: 'right',
            Y: 'top'
        });
    
            var growlNotificationSettings = localStorageService.get('growlNotificationSettings');
    
            NotificationProvider.setOptions({
                delay: growlNotificationSettings.delay,
                startTop: 20,
                startRight: 10,
                verticalSpacing: 20,
                horizontalSpacing: 20,
                positionX: growlNotificationSettings.X,
                positionY: growlNotificationSettings.Y
            });
        }])
    Priyan Perera
    @priyanperera
    Hi
    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
    @dandanknight
    Hi. Can I use both session and local storage at the same time with this module?
    kiril33
    @kiril33
    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
    ?
    kiril33
    @kiril33
    *with