{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3889","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3889/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3889/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3889/events","html_url":"https://github.com/angular-ui/bootstrap/issues/3889","id":92774944,"number":3889,"title":"Pagination Minor Improvement","user":{"login":"warrendodsworth","id":1066996,"avatar_url":"https://avatars.githubusercontent.com/u/1066996?v=3","gravatar_id":"","url":"https://api.github.com/users/warrendodsworth","html_url":"https://github.com/warrendodsworth","followers_url":"https://api.github.com/users/warrendodsworth/followers","following_url":"https://api.github.com/users/warrendodsworth/following{/other_user}","gists_url":"https://api.github.com/users/warrendodsworth/gists{/gist_id}","starred_url":"https://api.github.com/users/warrendodsworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrendodsworth/subscriptions","organizations_url":"https://api.github.com/users/warrendodsworth/orgs","repos_url":"https://api.github.com/users/warrendodsworth/repos","events_url":"https://api.github.com/users/warrendodsworth/events{/privacy}","received_events_url":"https://api.github.com/users/warrendodsworth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20pagination","name":"component: pagination","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/needs:%20info","name":"needs: info","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T02:09:22Z","updated_at":"2015-07-04T06:49:11Z","closed_at":null,"body":"Works great, could use an autoHide default: true like in (https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination)\r\nelse need to add ng-show everywhere.\r\n\r\nauto-hide (optional, default = true) Specify whether the pagination control should be hidden when there's not enough elements to paginate over.\r\n\r\n<pagination ng-model=\"currentPage\" items-per-page=\"itemsPerPage\" total-items=\"totalItems\" ng-change=\"get()\" ng-show=\"totalItems > itemsPerPage\"></pagination>\r\n\r\nI tried with some success, but not a proper solution."},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/118472041","html_url":"https://github.com/angular-ui/bootstrap/issues/3889#issuecomment-118472041","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3889","id":118472041,"user":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T06:49:11Z","updated_at":"2015-07-04T06:49:11Z","body":"One can simply use ng-show/ng-hide for that. I'm not sure I see a compelling reason for the logic to be duplicated in the directive itself - can you give more info as to why ng-show/ng-hide is not optimal?"}}