There is an application that looks like:
![](./examples/start.jpg)
Provide for this application routes
to do next subtasks:
- Create the path
/subtask1
with parameter. After navigating to this path the application rendersdiv
element with textSubtask1, parameter:
and value of parameter. E.g. routing to/subtask1/2
rendersSubtask1, parameter: 2
in andiv
element.
- Create the path
/subtask2
with query. After navigating to this path the application rendersdiv
element with textSubtask2, query parameters:
and values of all query parameters separated by comma. E.g. routing to/subtask2?author=alan&age=20
rendersSubtask2, query parameters: author=alan, age=20
in andiv
element.
- Create the path
/subtask3
with guard. If you click on link Show protected information if and if, at the same time, a number entered in theinput
is odd, the application navigates to/subtasks3
and rendersdiv
element with textSubtask3, protected information
- Create the path
/subtask4
which can be navigated programmatically as well as through address bar. Programmed route is triggered when user sets value of the check box tochecked
. After navigating to this path the application rendersdiv
element with textSubtask4, navigated programmatically