{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4627","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4627/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4627/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4627/events","html_url":"https://github.com/angular-ui/bootstrap/issues/4627","id":111568676,"number":4627,"title":"Behaviour of popover-is-open is unpredictable","user":{"login":"BParnikel","id":8242619,"avatar_url":"https://avatars.githubusercontent.com/u/8242619?v=3","gravatar_id":"","url":"https://api.github.com/users/BParnikel","html_url":"https://github.com/BParnikel","followers_url":"https://api.github.com/users/BParnikel/followers","following_url":"https://api.github.com/users/BParnikel/following{/other_user}","gists_url":"https://api.github.com/users/BParnikel/gists{/gist_id}","starred_url":"https://api.github.com/users/BParnikel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BParnikel/subscriptions","organizations_url":"https://api.github.com/users/BParnikel/orgs","repos_url":"https://api.github.com/users/BParnikel/repos","events_url":"https://api.github.com/users/BParnikel/events{/privacy}","received_events_url":"https://api.github.com/users/BParnikel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-15T08:31:53Z","updated_at":"2015-10-15T11:46:35Z","closed_at":"2015-10-15T11:19:51Z","body":"Hi all,\r\n\r\ni have a little question about popover-is-open. If i have a popover with popover-is-open=\"some_model\" and in popover i have button to set this model to false, then i can close popover by click on it. But if i set same handler to button, which actually has popover, then popover is opening despite the fact that some_model is set to false. See example and environment on plunkr: http://plnkr.co/edit/qKJeh5qCUq6qBsqosphf?p=preview\r\n\r\nSo how can i implement next functionality: i want to open popover when and only when some expression returns true (for example, i have a download modal dialog to save file and i want to show popover with warning only if size of file is greater than some limit)?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/148363430","html_url":"https://github.com/angular-ui/bootstrap/issues/4627#issuecomment-148363430","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4627","id":148363430,"user":{"login":"BParnikel","id":8242619,"avatar_url":"https://avatars.githubusercontent.com/u/8242619?v=3","gravatar_id":"","url":"https://api.github.com/users/BParnikel","html_url":"https://github.com/BParnikel","followers_url":"https://api.github.com/users/BParnikel/followers","following_url":"https://api.github.com/users/BParnikel/following{/other_user}","gists_url":"https://api.github.com/users/BParnikel/gists{/gist_id}","starred_url":"https://api.github.com/users/BParnikel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BParnikel/subscriptions","organizations_url":"https://api.github.com/users/BParnikel/orgs","repos_url":"https://api.github.com/users/BParnikel/repos","events_url":"https://api.github.com/users/BParnikel/events{/privacy}","received_events_url":"https://api.github.com/users/BParnikel/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T11:46:35Z","updated_at":"2015-10-15T11:46:35Z","body":"@RobJacobs Stackoverflow didn't help me.\r\n\r\nThank you, your solution helped!"}}