{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1380","repository_url":"https://api.github.com/repos/NativeScript/nativescript-angular","labels_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1380/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1380/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1380/events","html_url":"https://github.com/NativeScript/nativescript-angular/issues/1380","id":331845260,"node_id":"MDU6SXNzdWUzMzE4NDUyNjA=","number":1380,"title":"Navigation broken with closing modal","user":{"login":"tsonevn","id":17448734,"node_id":"MDQ6VXNlcjE3NDQ4NzM0","avatar_url":"https://avatars3.githubusercontent.com/u/17448734?v=4","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tsonevn","id":17448734,"node_id":"MDQ6VXNlcjE3NDQ4NzM0","avatar_url":"https://avatars3.githubusercontent.com/u/17448734?v=4","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"assignees":[{"login":"tsonevn","id":17448734,"node_id":"MDQ6VXNlcjE3NDQ4NzM0","avatar_url":"https://avatars3.githubusercontent.com/u/17448734?v=4","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-06-13T05:19:56Z","updated_at":"2018-06-27T08:31:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"_From @cgebe on June 12, 2018 17:17_\n\n### Tell us about the problem\r\nI am navigating to a lazy loaded module and within the same call i am closing a modal. The navigation works after a delay but immediately navigates back to the originating page without any error message.\r\n\r\nMaybe related to: https://github.com/NativeScript/NativeScript/issues/5853\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 4.1.0\r\n- Cross-platform modules: 4.1.0\r\n- Runtime(s): 4.1.2\r\n- Plugin(s): \"nativescript-angular\": \"6.0.0\",\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n\r\nHave a modal with a button on a page. In the the button click call navigate to a lazy loaded module and call the `closeCallback()` method. When not calling the `closeCallback()` the navigate happens immediately but it navigates back after the model is closed. If calling `closeCallback()` it navigates after 2 seconds but immediately navigates back. No errors shown.\r\n\r\nAs soon as the `closeCallback()` method is called the navigate back happens. Is there some hidden call happening in the back? How can i prevent this?\r\n\r\n\r\n\n\n_Copied from original issue: NativeScript/NativeScript#5944_"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/comments/400588337","html_url":"https://github.com/NativeScript/nativescript-angular/issues/1380#issuecomment-400588337","issue_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1380","id":400588337,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDU4ODMzNw==","user":{"login":"tsonevn","id":17448734,"node_id":"MDQ6VXNlcjE3NDQ4NzM0","avatar_url":"https://avatars3.githubusercontent.com/u/17448734?v=4","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T08:31:51Z","updated_at":"2018-06-27T08:31:51Z","author_association":"CONTRIBUTOR","body":"Hi @cgebe,\r\nI reviewed your project and found that you are using the old approach for opening the modal page, where the modal page navigation is not supported. To enable this functionality, you should define second page-router-outlet, which will be used for making navigation inside the modal page. For further help, you can review this part of the [documentation](https://docs.nativescript.org/angular/ui/ng-ui-widgets/modal-page#modal-page-navigation)."}}
{"actor":{"display_login":"tsonevn"}}