Lab 16 - Persistence: Import/Export

Build on earlier experience with the browser’s localStorage using the FileReader to support export/import of app state.

Learning Objectives

By the end of this lab, you should be able to:

  1. export from– and import to– localStorage

Prerequisites

  1. beginning localStorage (e.g. as exercised in Labs 10 and 11)
  2. Familiarity with the browser’s FileReader API

Instructions

  1. Begin with the starting code provided by your instructor (e.g. from an assignment in your learning management system) or else in the Transportodon repo
  2. Complete the Transportodon app as specified in the page’s aside.