{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular/issues/21198","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/21198/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/21198/comments","events_url":"https://api.github.com/repos/angular/angular/issues/21198/events","html_url":"https://github.com/angular/angular/issues/21198","id":284898955,"number":21198,"title":"angular 5 service worker not work in some lazy load modules","user":{"login":"icepoint0","id":12691638,"avatar_url":"https://avatars1.githubusercontent.com/u/12691638?v=4","gravatar_id":"","url":"https://api.github.com/users/icepoint0","html_url":"https://github.com/icepoint0","followers_url":"https://api.github.com/users/icepoint0/followers","following_url":"https://api.github.com/users/icepoint0/following{/other_user}","gists_url":"https://api.github.com/users/icepoint0/gists{/gist_id}","starred_url":"https://api.github.com/users/icepoint0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icepoint0/subscriptions","organizations_url":"https://api.github.com/users/icepoint0/orgs","repos_url":"https://api.github.com/users/icepoint0/repos","events_url":"https://api.github.com/users/icepoint0/events{/privacy}","received_events_url":"https://api.github.com/users/icepoint0/received_events","type":"User","site_admin":false},"labels":[{"id":708923209,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20service-worker","name":"comp: service-worker","color":"c5def5","default":false},{"id":348933279,"url":"https://api.github.com/repos/angular/angular/labels/state:%20Need%20repro","name":"state: Need repro","color":"e11d21","default":false},{"id":130606843,"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug/fix","name":"type: bug/fix","color":"EEEEEE","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/83","html_url":"https://github.com/angular/angular/milestone/83","labels_url":"https://api.github.com/repos/angular/angular/milestones/83/labels","id":3143880,"number":83,"title":"needsTriage","description":"Milestone for all issues that haven't been triaged yet","creator":{"login":"ocombe","id":265378,"avatar_url":"https://avatars0.githubusercontent.com/u/265378?v=4","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false},"open_issues":236,"closed_issues":330,"state":"open","created_at":"2018-02-26T14:22:18Z","updated_at":"2018-05-11T07:53:33Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-12-28T11:47:20Z","updated_at":"2018-05-11T07:53:33Z","closed_at":"2018-05-11T07:53:33Z","author_association":"NONE","body":"the example websitepage :[https://kl.atyun.net](https://kl.atyun.net)\r\n\r\nif  u first load the websites it will redirect to module A ,and the route is '/sites', but the service worker not work in this route. and then u visit the page \"/login\" ,service worker works now ,why ?\r\n\"/login\" and \"/sites\" not in same chunk.\r\n\r\nand here is my code:\r\n\r\napp.module:\r\n<pre>\r\n  imports: [\r\n    ServiceWorkerModule.register('./ngsw-worker.js', {enabled: environment.production}),\r\n    routing,\r\n    HttpModule,\r\n    BrowserAnimationsModule,\r\n    CommonModule,\r\n    FormsModule,\r\n\r\n  ],\r\n</pre>\r\n\r\n\r\nrouting config:\r\n<pre>\r\n  {path: 'sites', loadChildren: '../modules/site-render/site-render.module#SiteRenderModule'},\r\n  {path: 'login', loadChildren: '../modules/login/login.module#LoginModule'},\r\n</pre>\r\n\r\n\r\n"}}
{"actor":{"display_login":"gkalpak"}}