O'Reilly logo

Ionic Cookbook by Hoc Phan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a to-do app using ngStorage for Local Storage

There are many to-do apps out there, but it could get very complex when you just want to explore one capability of the platform or framework. The example in this recipe will leverage the idea of a to-do app to explain how Local Storage works. Most apps use Local Storage as a method to ensure that the app data is persistent and available offline. You will learn some basic knowledge about how to manipulate data by adding, editing, and deleting them. These are some very common operations for any app.

Here is the high-level process:

  • Initialize a Local Storage object with some sample data
  • Render an array of objects in the frontend
  • Allow the user to delete an item in the array and then update Local ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required