search

Home  >  Q&A  >  body text

angular.js - How to solve the problem of losing data when refreshing in angular

How to break the data loss when refreshing the page made by ng-view

大家讲道理大家讲道理2813 days ago567

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-15 17:09:08

    So it depends on where you save it. If it is stored in the memory, it will definitely be lost after refreshing. If there is a need for this, it can be stored in cookies or localStorage

    reply
    0
  • Cancelreply