netanelgilad / meteor-ionic-example

An example app using urigo:ionic package for simple app development with the ionic framwork on meteor.
72 stars 21 forks source link

Routes linked between tabs/browsers/devices #11

Open muvic08 opened 9 years ago

muvic08 commented 9 years ago

In this example, whenever I navigate in one tab/browser to a different view, all the other tabs/devices do the same. I am wondering why the views are coupled this way ... Any ideas?

ambujpunn commented 9 years ago

@muvic08 Can you specify exactly what you're saying? I'm having a hard time understanding your problem. Are you saying that when the app is running, and when you navigate to a different tab in your browser, the app that is running on another tab in another browser functions the same?

Sorry if I didn't understand your question, but please do try to explain it better :)

muvic08 commented 9 years ago

@ambujpunn Sorry for my poor explanation. Let me try it again. This is how you can replicate the issue:

  1. Clone and run the project.
  2. Go to localhost:**\ where you are running the project in two different tabs on the browser.
  3. Lets call the tabs tab1 and tab2.
  4. Create two projects and add tasks to them.
  5. Whenever you navigate to a project in tab1, tab2 also navigates
  6. The two tabs are mirroring each other.
  7. I want to be able to do things to tab1 without affecting the functionality of tab2. I hope that clarifies it a bit. Cheers
ambujpunn commented 9 years ago

@muvic08 Are you logged in as a user? This happens because locally you are seen as the same user in both the tabs. Hence if you were logged in as different users, that behavior would not be there. Because even in actuality, if the same user is logged onto the same application from two places (if your app allows it), then both clients should get modified.

netanelgilad commented 9 years ago

@muvic08 Did @ambujpunn answer help you?

ambujpunn commented 8 years ago

@muvic08 If you need any more explanations, I'd be more than happy to help :)