{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic/issues/15260","repository_url":"https://api.github.com/repos/ionic-team/ionic","labels_url":"https://api.github.com/repos/ionic-team/ionic/issues/15260/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic/issues/15260/comments","events_url":"https://api.github.com/repos/ionic-team/ionic/issues/15260/events","html_url":"https://github.com/ionic-team/ionic/issues/15260","id":352549774,"node_id":"MDU6SXNzdWUzNTI1NDk3NzQ=","number":15260,"title":"[ionic 4] ionViewWillEnter only triggers once.","user":{"login":"dtaalbers","id":6512556,"node_id":"MDQ6VXNlcjY1MTI1NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/6512556?v=4","gravatar_id":"","url":"https://api.github.com/users/dtaalbers","html_url":"https://github.com/dtaalbers","followers_url":"https://api.github.com/users/dtaalbers/followers","following_url":"https://api.github.com/users/dtaalbers/following{/other_user}","gists_url":"https://api.github.com/users/dtaalbers/gists{/gist_id}","starred_url":"https://api.github.com/users/dtaalbers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtaalbers/subscriptions","organizations_url":"https://api.github.com/users/dtaalbers/orgs","repos_url":"https://api.github.com/users/dtaalbers/repos","events_url":"https://api.github.com/users/dtaalbers/events{/privacy}","received_events_url":"https://api.github.com/users/dtaalbers/received_events","type":"User","site_admin":false},"labels":[{"id":835668554,"node_id":"MDU6TGFiZWw4MzU2Njg1NTQ=","url":"https://api.github.com/repos/ionic-team/ionic/labels/triage","name":"triage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-08-21T13:56:50Z","updated_at":"2018-10-10T10:31:04Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n# Bug Report\r\n\r\n**Ionic Info**\r\nRun `ionic info` from a terminal/cmd prompt and paste the output below.\r\n\r\n```\r\nIonic:\r\n\r\n   ionic (Ionic CLI)          : 4.0.5\r\n   Ionic Framework            : @ionic/angular 4.0.0-beta.3\r\n   @angular-devkit/core       : 0.7.2\r\n   @angular-devkit/schematics : 0.7.2\r\n   @angular/cli               : 6.1.2\r\n   @ionic/ng-toolkit          : 1.0.5\r\n   @ionic/schematics-angular  : 1.0.4\r\n\r\nCordova:\r\n\r\n   cordova (Cordova CLI) : 8.0.0\r\n   Cordova Platforms     : android 7.0.0, ios 4.5.5\r\n\r\nSystem:\r\n\r\n   Android SDK Tools : 25.2.5\r\n   ios-deploy        : 1.9.2\r\n   ios-sim           : 6.1.2\r\n   NodeJS            : v7.4.0 (/usr/local/bin/node)\r\n   npm               : 4.0.5\r\n   OS                : macOS High Sierra\r\n   Xcode             : Xcode 9.4.1 Build version 9F2000\r\n\r\nEnvironment:\r\n\r\n   ANDROID_HOME : /usr/local/Cellar/android-sdk/24.4.1_1\r\n```\r\n\r\n**Describe the Bug**\r\nThe `ionViewWillEnter` lifecycle (if its still called that) only triggers once. In ionic 3 the `ionViewWillEnter` triggered every time you navigated to the view. Now it only triggers the first time.\r\n\r\n**Steps to Reproduce**\r\nSteps to reproduce the behavior:\r\n1) Add `ionViewWillEnter` to your view\r\n\r\n```\r\npublic ionViewWillEnter(): void {\r\n     console.log('hi');\r\n}\r\n```\r\n2) Navigate to the page\r\n3) Navigate to a different page\r\n4) Navigate again to the page with the `ionViewWillEnter`\r\n\r\n**Expected Behavior**\r\nExpect the `console.log('hi')` to be logged every time I navigate to the view.\r\n\r\n**Additional Context**\r\nNote that I use tabs. Is there perphaps a `Angular` lifecycle which replaced `ionViewWillEnter`?\r\n\r\n```\r\n-- tabs\r\n     -- View 1 (with ionViewWillEnter)\r\n     -- View 2\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic/issues/comments/428521932","html_url":"https://github.com/ionic-team/ionic/issues/15260#issuecomment-428521932","issue_url":"https://api.github.com/repos/ionic-team/ionic/issues/15260","id":428521932,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODUyMTkzMg==","user":{"login":"Matee86","id":22369921,"node_id":"MDQ6VXNlcjIyMzY5OTIx","avatar_url":"https://avatars0.githubusercontent.com/u/22369921?v=4","gravatar_id":"","url":"https://api.github.com/users/Matee86","html_url":"https://github.com/Matee86","followers_url":"https://api.github.com/users/Matee86/followers","following_url":"https://api.github.com/users/Matee86/following{/other_user}","gists_url":"https://api.github.com/users/Matee86/gists{/gist_id}","starred_url":"https://api.github.com/users/Matee86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matee86/subscriptions","organizations_url":"https://api.github.com/users/Matee86/orgs","repos_url":"https://api.github.com/users/Matee86/repos","events_url":"https://api.github.com/users/Matee86/events{/privacy}","received_events_url":"https://api.github.com/users/Matee86/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T10:31:04Z","updated_at":"2018-10-10T10:31:04Z","author_association":"NONE","body":"Same with ngOnInit. Fix it please. It is fundamental."}}
{"actor":{"display_login":"Matee86"}}