search

Home  >  Q&A  >  body text

javascript - Passing parameters between different views cannot use routing and cannot be exposed to the address bar. So what is the best way? ~

I am currently using rootScope. Some people say to use service to pass it. But if there are not many parameters, such as just one, then creating a new service is overkill. What is the best practice? If possible, please give an example~

给我你的怀抱给我你的怀抱2718 days ago767

reply all(1)I'll reply

  • 三叔

    三叔2017-06-10 09:50:19

    Is there any situation where the user may refresh after the jump? If so, use local storage

    reply
    0
  • Cancelreply