{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/4634","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/4634/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/4634/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/4634/events","html_url":"https://github.com/driftyco/ionic/issues/4634","id":116987688,"number":4634,"title":"bug: Ionic Modal displays only once","user":{"login":"elhamsarikhani","id":14323843,"avatar_url":"https://avatars.githubusercontent.com/u/14323843?v=3","gravatar_id":"","url":"https://api.github.com/users/elhamsarikhani","html_url":"https://github.com/elhamsarikhani","followers_url":"https://api.github.com/users/elhamsarikhani/followers","following_url":"https://api.github.com/users/elhamsarikhani/following{/other_user}","gists_url":"https://api.github.com/users/elhamsarikhani/gists{/gist_id}","starred_url":"https://api.github.com/users/elhamsarikhani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elhamsarikhani/subscriptions","organizations_url":"https://api.github.com/users/elhamsarikhani/orgs","repos_url":"https://api.github.com/users/elhamsarikhani/repos","events_url":"https://api.github.com/users/elhamsarikhani/events{/privacy}","received_events_url":"https://api.github.com/users/elhamsarikhani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-15T11:26:26Z","updated_at":"2015-11-15T13:49:21Z","closed_at":null,"body":"**Type**: <span ionic-type>bug</span>\r\n\r\n**Platform**: <span ionic-platform>all</span>  \r\n\r\n<span ionic-description>I'm having a simple modal to be displayed while the data is being fetched from an API call. as I trigger the loading once, the modal gets displayed and the data will be loaded but upon second time click on loading button, the modal won't load anymore. \r\n\r\n     $ionicModal.fromTemplateUrl('views/loading.html', {\r\n\t\tscope: $scope,\r\n\t\tbackdropClickToClose: false,\r\n\t\thardwareBackButtonClose: true,\r\n\t\tanimation: 'slide-in-up'\r\n\t}).then(function(modal) {\r\n\t\t$scope.modal = modal;\r\n\t});\r\n\r\n\t$scope.openModal = function() {\r\n\t\t$scope.modal.show();\r\n\t\talertServices.getInvoices()\r\n\t\t\t.then(function(data) {\r\n\t\t\t\t$scope.closeModal();\r\n\t\t\t})\r\n\t}\r\n\r\n\t$scope.closeModal = function() {\r\n\t\t$scope.modal.hide();\r\n\t};\r\n\r\n\t$scope.$on('$destroy', function() {\r\n\t\t$scope.modal.remove();\r\n\t});\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/156812877","html_url":"https://github.com/driftyco/ionic/issues/4634#issuecomment-156812877","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/4634","id":156812877,"user":{"login":"elhamsarikhani","id":14323843,"avatar_url":"https://avatars.githubusercontent.com/u/14323843?v=3","gravatar_id":"","url":"https://api.github.com/users/elhamsarikhani","html_url":"https://github.com/elhamsarikhani","followers_url":"https://api.github.com/users/elhamsarikhani/followers","following_url":"https://api.github.com/users/elhamsarikhani/following{/other_user}","gists_url":"https://api.github.com/users/elhamsarikhani/gists{/gist_id}","starred_url":"https://api.github.com/users/elhamsarikhani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elhamsarikhani/subscriptions","organizations_url":"https://api.github.com/users/elhamsarikhani/orgs","repos_url":"https://api.github.com/users/elhamsarikhani/repos","events_url":"https://api.github.com/users/elhamsarikhani/events{/privacy}","received_events_url":"https://api.github.com/users/elhamsarikhani/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T13:49:21Z","updated_at":"2015-11-15T13:49:21Z","body":"I found out the issue root cause:\r\nthe http calls to API was using  `cache: 'true'` it should have been `cache: false`\r\n"}}