{"action":"created","issue":{"url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/699","repository_url":"https://api.github.com/repos/valor-software/ng2-bootstrap","labels_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/699/comments","events_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/699/events","html_url":"https://github.com/valor-software/ng2-bootstrap/issues/699","id":164562275,"number":699,"title":"Need way to veto tab selected","user":{"login":"slubowsky","id":270589,"avatar_url":"https://avatars.githubusercontent.com/u/270589?v=3","gravatar_id":"","url":"https://api.github.com/users/slubowsky","html_url":"https://github.com/slubowsky","followers_url":"https://api.github.com/users/slubowsky/followers","following_url":"https://api.github.com/users/slubowsky/following{/other_user}","gists_url":"https://api.github.com/users/slubowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/slubowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slubowsky/subscriptions","organizations_url":"https://api.github.com/users/slubowsky/orgs","repos_url":"https://api.github.com/users/slubowsky/repos","events_url":"https://api.github.com/users/slubowsky/events{/privacy}","received_events_url":"https://api.github.com/users/slubowsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-08T16:00:07Z","updated_at":"2016-07-12T18:46:24Z","closed_at":null,"body":"Using tabs with tab.active bound to my models tab.active I register for the select event and only set the \"active\" flag on my tab model to true if certain conditions are met (actually poping up an observable save dialog and giving option to cancel). When I dont set active to true I am left with a model that is out of sync with the UI. My model thinks tab 1 is active and the UI shows tab 2 is active. How can I force the UI to resync with the model and show the correct tab to be active. (short of toggling the tabs variable in a timeout)"},"comment":{"url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/comments/232141827","html_url":"https://github.com/valor-software/ng2-bootstrap/issues/699#issuecomment-232141827","issue_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/699","id":232141827,"user":{"login":"slubowsky","id":270589,"avatar_url":"https://avatars.githubusercontent.com/u/270589?v=3","gravatar_id":"","url":"https://api.github.com/users/slubowsky","html_url":"https://github.com/slubowsky","followers_url":"https://api.github.com/users/slubowsky/followers","following_url":"https://api.github.com/users/slubowsky/following{/other_user}","gists_url":"https://api.github.com/users/slubowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/slubowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slubowsky/subscriptions","organizations_url":"https://api.github.com/users/slubowsky/orgs","repos_url":"https://api.github.com/users/slubowsky/repos","events_url":"https://api.github.com/users/slubowsky/events{/privacy}","received_events_url":"https://api.github.com/users/slubowsky/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T18:46:23Z","updated_at":"2016-07-12T18:46:23Z","body":"I dont think its anything I'm doing out of the zone because I'm not doing anything!.  I'm simply not updating the active flag on my tab model to be true - expecting that the UI will then match my model and not show the tab as active, but it doesn't. (i.e. Im trying to ignore the active by not updating the active flag on my model object)\r\nI looked around a bit and think that this is probably the same issue as https://github.com/valor-software/ng2-bootstrap/issues/694. The UI doesn't stay in sync with the active flag on the tabs as would be expected.\r\nI tried adding a call to ChangeDetectionRef.detectChanges after active on the model and the UI are out of sync to the plunkter for that issue and it did not help.\r\n"}}
{"actor":{"display_login":"slubowsky"}}