Creating a Storage Service

Learn how to use the Ionic Storage API through a custom service in a sample Ionic project.

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 @ionic/storage-angular

Note: You can try running these commands in the terminal provided below.

Get hands-on with 1200+ tech skills courses.