0.0.2 • Published 7 years ago
ng-lstorage v0.0.2
About
- The data type will be kept.
- Support expired setting.
How to use
import { ngLstorage } from 'ng-lstorage';
ngLstorage.setItem( "name", true, {
expiredIn: 10, // will be expired in 10 seconeds
// expiredAt: "2018-12-26 12:23:00"
} ) ;
ngLstorage.getItem( "name" );
ngLstorage.removeItem( "name" );