{"action":"created","issue":{"url":"https://api.github.com/repos/mgcrea/angular-strap/issues/1233","labels_url":"https://api.github.com/repos/mgcrea/angular-strap/issues/1233/labels{/name}","comments_url":"https://api.github.com/repos/mgcrea/angular-strap/issues/1233/comments","events_url":"https://api.github.com/repos/mgcrea/angular-strap/issues/1233/events","html_url":"https://github.com/mgcrea/angular-strap/issues/1233","id":47833416,"number":1233,"title":"Tabs makes my form $dirty","user":{"login":"just-boris","id":812240,"avatar_url":"https://avatars.githubusercontent.com/u/812240?v=3","gravatar_id":"","url":"https://api.github.com/users/just-boris","html_url":"https://github.com/just-boris","followers_url":"https://api.github.com/users/just-boris/followers","following_url":"https://api.github.com/users/just-boris/following{/other_user}","gists_url":"https://api.github.com/users/just-boris/gists{/gist_id}","starred_url":"https://api.github.com/users/just-boris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/just-boris/subscriptions","organizations_url":"https://api.github.com/users/just-boris/orgs","repos_url":"https://api.github.com/users/just-boris/repos","events_url":"https://api.github.com/users/just-boris/events{/privacy}","received_events_url":"https://api.github.com/users/just-boris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mgcrea/angular-strap/labels/directive-tab","name":"directive-tab","color":"444444"},{"url":"https://api.github.com/repos/mgcrea/angular-strap/labels/enhancement","name":"enhancement","color":"009800"},{"url":"https://api.github.com/repos/mgcrea/angular-strap/labels/needs-investigation","name":"needs-investigation","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-11-05T13:03:28Z","updated_at":"2015-12-30T09:02:30Z","closed_at":"2014-11-09T14:50:03Z","body":"I have a form divided by tabs, like this\r\n```html\r\n<form name=\"form.myform\" class=\"form-horizontal\"\r\n      ng-submit=\"save()\">\r\n    <div bs-tabs ng-model=\"selectedTab\">\r\n        <div data-title=\"Common\" bs-pane>\r\n            //some inputs\r\n        </div>\r\n        <div data-title=\"Extra\" bs-pane>\r\n            //some another inputs\r\n        </div>\r\n    </div>\r\n    <div class=\"pull-right\">\r\n            <button type=\"button\" class=\"btn btn-default\" ng-click=\"close()\">Close</button>\r\n            <input type=\"submit\" class=\"btn btn-default\" ng-class=\"{'btn-success': form.myform.$dirty}\" value=\"Save changes\" />\r\n     </div>\r\n</form>\r\n```\r\nI track `form.$dirty` property to show message for user about unsaved changes\r\nWithout `ng-model` on tabs all working good, but when I had added it, form remains `$dirty` forever.\r\nWhat do I do? I think, that is bad idea to bind active tab to model, because it is not actual change which should be saved on server."},"comment":{"url":"https://api.github.com/repos/mgcrea/angular-strap/issues/comments/167960557","html_url":"https://github.com/mgcrea/angular-strap/issues/1233#issuecomment-167960557","issue_url":"https://api.github.com/repos/mgcrea/angular-strap/issues/1233","id":167960557,"user":{"login":"joaoborsoi","id":1344545,"avatar_url":"https://avatars.githubusercontent.com/u/1344545?v=3","gravatar_id":"","url":"https://api.github.com/users/joaoborsoi","html_url":"https://github.com/joaoborsoi","followers_url":"https://api.github.com/users/joaoborsoi/followers","following_url":"https://api.github.com/users/joaoborsoi/following{/other_user}","gists_url":"https://api.github.com/users/joaoborsoi/gists{/gist_id}","starred_url":"https://api.github.com/users/joaoborsoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaoborsoi/subscriptions","organizations_url":"https://api.github.com/users/joaoborsoi/orgs","repos_url":"https://api.github.com/users/joaoborsoi/repos","events_url":"https://api.github.com/users/joaoborsoi/events{/privacy}","received_events_url":"https://api.github.com/users/joaoborsoi/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T09:02:30Z","updated_at":"2015-12-30T09:02:30Z","body":"I have the same issue with collapse. There is already an open issue at https://github.com/mgcrea/angular-strap/issues/1561 but with no answer. It would be great a similar solution."}}