{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/7843","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/7843/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/7843/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/7843/events","html_url":"https://github.com/driftyco/ionic/issues/7843","id":172857142,"number":7843,"title":"Loading component is not working inside Modal Page.","user":{"login":"srishiva89","id":19839068,"avatar_url":"https://avatars.githubusercontent.com/u/19839068?v=3","gravatar_id":"","url":"https://api.github.com/users/srishiva89","html_url":"https://github.com/srishiva89","followers_url":"https://api.github.com/users/srishiva89/followers","following_url":"https://api.github.com/users/srishiva89/following{/other_user}","gists_url":"https://api.github.com/users/srishiva89/gists{/gist_id}","starred_url":"https://api.github.com/users/srishiva89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srishiva89/subscriptions","organizations_url":"https://api.github.com/users/srishiva89/orgs","repos_url":"https://api.github.com/users/srishiva89/repos","events_url":"https://api.github.com/users/srishiva89/events{/privacy}","received_events_url":"https://api.github.com/users/srishiva89/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/modals","name":"modals","color":"fbca04"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/needs%20reply","name":"needs reply","color":"ededed"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-24T03:33:27Z","updated_at":"2016-08-25T13:31:12Z","closed_at":null,"body":"In my page, I've a search button. If i click that search button, I'm showing up one modal (Modal Component) page and displaying data which are retrieved from an  API. But it took some time to display data from an API. So I tried to use Loading component in Modal page. But it is not working as I expected.\r\n\r\nI've already used one loading component in my root page. It is working.  \r\n\r\nThe issue is loading component is not working in Modal page.. "},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/242386497","html_url":"https://github.com/driftyco/ionic/issues/7843#issuecomment-242386497","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/7843","id":242386497,"user":{"login":"srishiva89","id":19839068,"avatar_url":"https://avatars.githubusercontent.com/u/19839068?v=3","gravatar_id":"","url":"https://api.github.com/users/srishiva89","html_url":"https://github.com/srishiva89","followers_url":"https://api.github.com/users/srishiva89/followers","following_url":"https://api.github.com/users/srishiva89/following{/other_user}","gists_url":"https://api.github.com/users/srishiva89/gists{/gist_id}","starred_url":"https://api.github.com/users/srishiva89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srishiva89/subscriptions","organizations_url":"https://api.github.com/users/srishiva89/orgs","repos_url":"https://api.github.com/users/srishiva89/repos","events_url":"https://api.github.com/users/srishiva89/events{/privacy}","received_events_url":"https://api.github.com/users/srishiva89/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T13:31:12Z","updated_at":"2016-08-25T13:31:12Z","body":"Code snippet:\r\n\r\nI have used ModalPage in same MyPage.ts file. I mean I didn't create new ts file for Modal Page.\r\n\r\n**MyPage.ts**\r\n\r\n```\r\nexport class MyPage implements OnInit{\r\n\r\n   public openModal(): any{\r\n        let modal Modal = this,modalCtrl.create(ModalPage, this.myParam);\r\n    }\r\n}\r\nexport class ModalPage implements OnInit{\r\n\r\n let loading: Loading = this.loadingController.create({\r\n      content: 'Loading..',\r\n    });\r\n\r\n setTimeout(\r\n      () => {\r\n        loading.dismiss();\r\n      },\r\n      4000\r\n    );\r\n}\r\n\r\n```\r\n\r\nMyPage.html:\r\n\r\n```\r\n<ion-buttons end>\r\n      <button (click)=\"openModal()\">\r\n        <ion-icon name=\"search\"></ion-icon>\r\n      </button>\r\n    </ion-buttons>\r\n```\r\n\r\n"}}
{"actor":{"display_login":"srishiva89"}}