Local storage change in location

Hi there

Where is Localstorage currently located. I no longer see it in ‘ionic-angular’.

Kind regards

See release notes RC.0:

Storage has been removed from ionic-angular and placed into a separate module, @ionic/storage. Starters have been updated to add this, make sure to add it to your package.json if you’re using the storage system. See more details here.

Aaah, cool thanks, Did Localstorage fall away completely? Do I just use Storage now for the purpose of temporary storage?

before my approach was like this

import { Storage, LocalStorage } from 'ionic-angular';

local: Storage;

 constructor(private http: Http, private _profile: IProfile) {
 this.local = new Storage(LocalStorage);
}

Kind regards

Don’t know that sorry (I use localforage)

Cool, no problem, thanks

Yes, you should. It handles your localstorage as well.

1 Like

@luukschoen is right:

if you want to use locaforage:

and using storage:

1 Like