My angularJS ng-model is shared across browser tabs. How to prevent that

纵饮孤独 提交于 2019-12-22 22:19:38

问题


My angularJS ng-model is shared across browser tabs. I want to maintain a separate scope for each tab. I am storing data in SessionStorage.I dont have any issues with SessionStorage but ng-model which is having watcher, is shared across browser tabs. How to prevent that?


回答1:


That is easy, there are hide options for it! When your application starts to run at http://Localhost:3000, an other application start at http://localhost:3001. In this application there are some configuration that can be change, for example, Sync Options. You must navigate to http://localhost:3001 then select Sync Option and disable all option but CodeSync.



来源:https://stackoverflow.com/questions/34713851/my-angularjs-ng-model-is-shared-across-browser-tabs-how-to-prevent-that

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!