Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A child route is instantiated by adding the Parent(#ExampleRoute) to the #PRIM_WEB.Route class. The purpose of a child route is to build a path hierarchy. For example, a #CustomersRoute may have child routes #CustomerContact, #CustomerMap, and #Customer Profile.

Image Modified

Nested Routes

...

The following snippet from the view (PSCATV01) associated with the component name #CategoryRoute in the previous image has its own router that allows the nesting of additional views inside its own view container. Thus, an active path like /Categories/Fluffy/Products/P123 uses the path segment /Categories/Fluffy to identify PSCATV01 and when PSCATV01 is created, the route component named ProductItemRoute is identified using the Products/P123.

Image Modified

Protected Routes

...

Wildcards are used in paths. The path string of a route can end with the asterisk character and trigger a match with this route. No exact or partial matches can be found.

Note
Note: Routing handles partial matches.