This looks like a great library though I would almost have ignored it and would have moved on to "Aviator" instead.
The documentations line which made me try out this library anyhow was "Supports routing using pushState or hashchange concurrently". Though, in a few places the documentation makes the impression that one had to choose between one of the two.
E.g.:
The pushState option doesn't default to a feature detection (e.g. 'pushState' in window.history). Using this as the option's value seems solid though this should probably mentioned in the documentation to show that this is indeed working fine.
The documentation states "If pushState is enabled, you can navigate through your application with router.navigate"
router.navigate though also works without pushState disabled - any other behavior would be weird anyhow, especially when developing for supporting both ways concurrently.
This looks like a great library though I would almost have ignored it and would have moved on to "Aviator" instead. The documentations line which made me try out this library anyhow was "
Supports routing using pushState or hashchange concurrently
". Though, in a few places the documentation makes the impression that one had to choose between one of the two. E.g.:'pushState' in window.history
). Using this as the option's value seems solid though this should probably mentioned in the documentation to show that this is indeed working fine.If pushState is enabled, you can navigate through your application with router.navigate
" router.navigate though also works without pushState disabled - any other behavior would be weird anyhow, especially when developing for supporting both ways concurrently.