If you would like navigate due to a work application that have multiple viewpoints, you’ll need a good router to handle this new URLs. Act Router manages you to, preserving your software UI additionally the Hyperlink for the sync.
Addition
Act are a famous library having doing solitary-webpage programs (SPAs) that will be made for the client top. An Spa might have numerous views (aka profiles), and you will as opposed to conventional multi-web page programs, navigating thanks to these opinions shouldn’t make the entire webpage are reloaded. As an alternative, we require the brand new opinions becoming rendered inline into the newest web page. The end affiliate, that familiar with multiple-web page programs, wants next provides to be present in a keen Salon:
- For every single glance at have to have a good Hyperlink one to uniquely determine you to definitely take a look at. This is so the consumer is bookple, example/activities .
- The brand new browser’s back and submit switch should behave as expected.
- Dynamically generated nested viewpoints would be to essentially keeps an excellent Url of their own as well – such as for instance example/products/shoes/101 , in which 101 ‘s the device ID.
Navigation is the process of remaining the new browser Hyperlink during the connect having what exactly is becoming made to your web page. Perform Router enables you to handle routing declaratively. Brand new declarative routing method allows you to manage the details circulate in your application, by stating “this new station will want https://datingmentor.org/escort/boulder/ to look similar to this”:
Читать далее “Behave Router ‘s the de facto practical navigation collection for Behave”