Search⌘ K
AI Features

Creating a Storage Service

Explore how to build a storage service in an Ionic Angular app using the Ionic Storage API. Understand module import, service creation with CLI, and async data handling through Promise-based methods to manage persistent data effectively.

Getting started

Let’s start exploring the Ionic Storage API with a sample project.

Using the system CLI, we create the following new Ionic project and, once completed, change into the root of the created project directory:

ionic start movies-app blank --type=angular
cd ./movies-app

Within the root directory of the movies-app project, we now need to install the Ionic Storage NPM package, like so:

npm install --save
...