Open artemjackson opened 9 years ago
Hey!
Could you provide an example use case?
// Setup
$scope.$storage = $localStorage.$default({
counter: 42
});
$scope.$storage.counter = 142;
$scope.$storage.$reset();
// Now the counter is 42 again.
Something like this you would like ?
yep, exactly
it could be $resetDefaults()
method or something like this
This would have been exactly, what I needed.
It would be great to have ability to reset ngStorage variables to their default values