search

Home  >  Q&A  >  body text

angular.js - Ask for advice on route ng-view how to cache user input information when switching single pages

I used ng-view to create a single page. When switching between several single pages, the data entered by the user disappeared
1. Enter text

2. Switch between single pages

3. Return to the previous page and the entered text is missing

高洛峰高洛峰2823 days ago565

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-15 16:54:32

    You can consider using localStorage

    reply
    0
  • Cancelreply