I need for extending ngStorage with location dependent keys:
.decorator('$localStorage', function ($delegate, $location) { $delegate.gridState = function (state) { var key = 'grid-' + $location.url().slice(1); if (state) this[key] = state; return this[key]; }; return $delegate; })
but this creates also the "gridState" key in storage...
I need for extending ngStorage with location dependent keys:
.decorator('$localStorage', function ($delegate, $location) { $delegate.gridState = function (state) { var key = 'grid-' + $location.url().slice(1); if (state) this[key] = state; return this[key]; }; return $delegate; })
but this creates also the "gridState" key in storage...