lib/ngapp/storage.js
function get(name) {
        var value = (_.isFunction($cookies.get) ? $cookies.get(name) : $cookies[name]);

        if (!value && localStorage) {

            try {
                value = localStorage.getItem(name);
            }
            catch (ex) {}

            if (value) {
                set(name, value);
            }
        }

        return value;
    }
function get(name) {
        var value = (_.isFunction($cookies.get) ? $cookies.get(name) : $cookies[name]);

        if (!value && localStorage) {

            try {
                value = localStorage.getItem(name);
            }
            catch (ex) {}

            if (value) {
                set(name, value);
            }
        }

        return value;
    }
function get ( name ) { var value = ( _ . isFunction ( $cookies . get ) ? $cookies . get ( name ) : $cookies [ name ] ) ; if ( ! value && localStorage ) { try { value = localStorage . getItem ( name ) ; } catch ( ex ) { } if ( value ) { set ( name , value ) ; } } return value ; }
First check cookie; if not present, however, check local storage
@param name
First check cookie ; if not present however check local storage