{"action":"created","issue":{"url":"https://api.github.com/repos/rpocklin/ui-router-tabs/issues/33","labels_url":"https://api.github.com/repos/rpocklin/ui-router-tabs/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/rpocklin/ui-router-tabs/issues/33/comments","events_url":"https://api.github.com/repos/rpocklin/ui-router-tabs/issues/33/events","html_url":"https://github.com/rpocklin/ui-router-tabs/issues/33","id":98019303,"number":33,"title":"Conditional routing within a tab?","user":{"login":"skidvd","id":5832513,"avatar_url":"https://avatars.githubusercontent.com/u/5832513?v=3","gravatar_id":"","url":"https://api.github.com/users/skidvd","html_url":"https://github.com/skidvd","followers_url":"https://api.github.com/users/skidvd/followers","following_url":"https://api.github.com/users/skidvd/following{/other_user}","gists_url":"https://api.github.com/users/skidvd/gists{/gist_id}","starred_url":"https://api.github.com/users/skidvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skidvd/subscriptions","organizations_url":"https://api.github.com/users/skidvd/orgs","repos_url":"https://api.github.com/users/skidvd/repos","events_url":"https://api.github.com/users/skidvd/events{/privacy}","received_events_url":"https://api.github.com/users/skidvd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-29T20:07:14Z","updated_at":"2015-08-23T11:03:40Z","closed_at":"2015-08-23T11:03:40Z","body":"Is it possible have conditional routing within your tab data?  Something like:\r\n\r\n$scope.tabData = [\r\n{\r\n\theading: 'MyTab',\r\n\troute:   myService.isDetailMode() ? 'main.details' : 'main.overview\r\n}\r\n\r\nThe above does not appear to generate any errors, but toggling toggle the service controlled value also does not produce the desired dynamic switch between states.\r\n\r\nIs there a better way to achieve this?  Basically, I'm hoping to have a tab's contents dynamically adapt in response to service controlled values.\r\n\r\nTIA!"},"comment":{"url":"https://api.github.com/repos/rpocklin/ui-router-tabs/issues/comments/133817350","html_url":"https://github.com/rpocklin/ui-router-tabs/issues/33#issuecomment-133817350","issue_url":"https://api.github.com/repos/rpocklin/ui-router-tabs/issues/33","id":133817350,"user":{"login":"rpocklin","id":876651,"avatar_url":"https://avatars.githubusercontent.com/u/876651?v=3","gravatar_id":"","url":"https://api.github.com/users/rpocklin","html_url":"https://github.com/rpocklin","followers_url":"https://api.github.com/users/rpocklin/followers","following_url":"https://api.github.com/users/rpocklin/following{/other_user}","gists_url":"https://api.github.com/users/rpocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/rpocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpocklin/subscriptions","organizations_url":"https://api.github.com/users/rpocklin/orgs","repos_url":"https://api.github.com/users/rpocklin/repos","events_url":"https://api.github.com/users/rpocklin/events{/privacy}","received_events_url":"https://api.github.com/users/rpocklin/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T11:03:40Z","updated_at":"2015-08-23T11:03:40Z","body":"Closing due to inactivity."}}