Closed fridays closed 7 years ago
Adds the possibility to resolve routes by URL in addition to name.
routes.add('blog', '/blog/:slug')
<Link route='/blog/hello-world'><a>Click</a></Link>
Router.pushRoute('/blog/hello-world') Router.replaceRoute('/blog/hello-world') Router.prefetchRoute('/blog/hello-world')
The interface didn't change. If no route was found by name, it tries to find one by matching it against the patterns. If still no route was found, it passes it on to next as it came in.
next
Closes #46 closes #23 closes #21
Adds the possibility to resolve routes by URL in addition to name.
The interface didn't change. If no route was found by name, it tries to find one by matching it against the patterns. If still no route was found, it passes it on to
next
as it came in.Closes #46 closes #23 closes #21