{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic/issues/15316","repository_url":"https://api.github.com/repos/ionic-team/ionic","labels_url":"https://api.github.com/repos/ionic-team/ionic/issues/15316/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic/issues/15316/comments","events_url":"https://api.github.com/repos/ionic-team/ionic/issues/15316/events","html_url":"https://github.com/ionic-team/ionic/issues/15316","id":353654778,"node_id":"MDU6SXNzdWUzNTM2NTQ3Nzg=","number":15316,"title":"【ionic 4】ionic back button issue","user":{"login":"wesleyxiao","id":2177367,"node_id":"MDQ6VXNlcjIxNzczNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/2177367?v=4","gravatar_id":"","url":"https://api.github.com/users/wesleyxiao","html_url":"https://github.com/wesleyxiao","followers_url":"https://api.github.com/users/wesleyxiao/followers","following_url":"https://api.github.com/users/wesleyxiao/following{/other_user}","gists_url":"https://api.github.com/users/wesleyxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleyxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleyxiao/subscriptions","organizations_url":"https://api.github.com/users/wesleyxiao/orgs","repos_url":"https://api.github.com/users/wesleyxiao/repos","events_url":"https://api.github.com/users/wesleyxiao/events{/privacy}","received_events_url":"https://api.github.com/users/wesleyxiao/received_events","type":"User","site_admin":false},"labels":[{"id":91551482,"node_id":"MDU6TGFiZWw5MTU1MTQ4Mg==","url":"https://api.github.com/repos/ionic-team/ionic/labels/navigation","name":"navigation","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-08-24T06:00:15Z","updated_at":"2018-11-21T09:34:56Z","closed_at":null,"author_association":"NONE","body":"i create a tabs\r\nwhich include three pages\r\n\r\ntabs\r\n----home\r\n----menu\r\n----contact\r\n\r\n\r\nin home page i add a detail page\r\n\r\nwhen click button on home page, can be push to detail page\r\n```\r\n\r\nimport { Component } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\n@Component({\r\n  selector: 'app-home',\r\n  templateUrl: 'home.page.html',\r\n  styleUrls: ['home.page.scss']\r\n})\r\nexport class HomePage {\r\n  constructor(private router: Router) { \r\n\r\n  }\r\n  pushTo(id){\r\n    this.router.navigate(['/detail/'+id]);\r\n  }\r\n}\r\n```\r\n\r\nso when i click button on home page, it will go detail page, and then i click back button it go back to home page, everything looking good.\r\n\r\nproblem is if i click button again, detail page button is missing and have no page transition\r\n\r\non console there show    \"router-outlet destroyed\"\r\n\r\nhere is my routing module\r\n```\r\nimport { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nconst routes: Routes = [\r\n  { path: '', loadChildren: './tabs/tabs.module#TabsPageModule' },\r\n  { path: 'detail/:id', loadChildren: './detail/detail.module#DetailPageModule' }\r\n];\r\n@NgModule({\r\n  imports: [RouterModule.forRoot(routes)],\r\n  exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule {}\r\n```\r\n\r\n\r\n\r\nhere is my tabs routing module\r\n```\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\n\r\nimport { TabsPage } from './tabs.page';\r\nimport { HomePage } from '../home/home.page';\r\nimport { AboutPage } from '../about/about.page';\r\nimport { ContactPage } from '../contact/contact.page';\r\n\r\nconst routes: Routes = [\r\n  {\r\n    path: 'tabs',\r\n    component: TabsPage,\r\n    children: [\r\n      {\r\n        path: 'home',\r\n        outlet: 'home',\r\n        component: HomePage\r\n      },\r\n      {\r\n        path: 'about',\r\n        outlet: 'about',\r\n        component: AboutPage\r\n      },\r\n      {\r\n        path: 'contact',\r\n        outlet: 'contact',\r\n        component: ContactPage\r\n      }\r\n    ]\r\n  },\r\n  {\r\n    path: '',\r\n    redirectTo: '/tabs/(home:home)',\r\n    pathMatch: 'full'\r\n  }\r\n];\r\n\r\n@NgModule({\r\n  imports: [RouterModule.forChild(routes)],\r\n  exports: [RouterModule]\r\n})\r\nexport class TabsPageRoutingModule {}\r\n\r\n```\r\n\r\n\r\nhere is detail.page.html\r\n\r\n```\r\n<ion-header>\r\n  <ion-toolbar>\r\n    <ion-buttons slot=\"start\">\r\n      <ion-back-button></ion-back-button>\r\n    </ion-buttons>\r\n    <ion-title>详情</ion-title>\r\n  </ion-toolbar>\r\n</ion-header>\r\n\r\n<ion-content padding>\r\n{{post_data}}\r\n</ion-content>\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic/issues/comments/440597189","html_url":"https://github.com/ionic-team/ionic/issues/15316#issuecomment-440597189","issue_url":"https://api.github.com/repos/ionic-team/ionic/issues/15316","id":440597189,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDU5NzE4OQ==","user":{"login":"gulullu","id":6680375,"node_id":"MDQ6VXNlcjY2ODAzNzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6680375?v=4","gravatar_id":"","url":"https://api.github.com/users/gulullu","html_url":"https://github.com/gulullu","followers_url":"https://api.github.com/users/gulullu/followers","following_url":"https://api.github.com/users/gulullu/following{/other_user}","gists_url":"https://api.github.com/users/gulullu/gists{/gist_id}","starred_url":"https://api.github.com/users/gulullu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gulullu/subscriptions","organizations_url":"https://api.github.com/users/gulullu/orgs","repos_url":"https://api.github.com/users/gulullu/repos","events_url":"https://api.github.com/users/gulullu/events{/privacy}","received_events_url":"https://api.github.com/users/gulullu/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T09:34:56Z","updated_at":"2018-11-21T09:34:56Z","author_association":"NONE","body":"> The issue was fixed in last ionic 4 version 😄\r\n\r\n'router-outlet destroyed' issue still existing on '4.0.0-beta.16'."}}
{"actor":{"display_login":"gulullu"}}