Disable navigation.instant on certain pages #4296
-
This However, we have a library section in our documentation which uses some javascript from a 3rd party and that break when navigation.instant is enabled. I wonder if it's possible to disable navigation.instant on specific pages only? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Not possible and not planned. I'm not even sure how this should work. Nonetheless, you can detect location and document changes with the |
Beta Was this translation helpful? Give feedback.
-
Thanks, got it resolved by fixing the included javascript. For reference, the site which uses this can be found at https://ecaguide.org/library |
Beta Was this translation helpful? Give feedback.
Not possible and not planned. I'm not even sure how this should work. Nonetheless, you can detect location and document changes with the
location$
anddocument$
observable which is exported towindow
, and use that to mount and unmount your components on specific pages. Note thatscript
tags that are part of the page are executed.