0

Is there any way to get router NavigationError event reason? i need different handling for this cases

  • canActivate returned false
  • lazy route chunk file is not found (bundles updated and i need to show proper message for user to refresh page)
drow
  • 194
  • 3
  • 15
  • Have you got a way to tackle this? – Tibin Paul Nov 27 '17 at 07:28
  • 1
    i patched angular-router-loader webpack by adding error reason (and now it's officially supported in this lib). And there is one more way, but havent test it https://github.com/angular/angular/issues/12289#issuecomment-346972665 – drow Nov 29 '17 at 11:12
  • Nice! https://github.com/angular/angular/issues/12289#issuecomment-301063829 helped me. Just posting here for the future reference. – Tibin Paul Dec 02 '17 at 06:29

0 Answers0