34
loading...
This website collects cookies to deliver better user experience
url
, a urlTree
(useful for RouteGuards), or seamlessly navigate()
to the desired routethis.route.createUrlTree(commands)
methodRoutePathBuilder
. Here is how the new library will describe the routes using the hypothetical example from above.url
and urlFromCommands
methods return an instance of the AppUrl
class. This class has the url
and urlTree
properties and a navigate()
method. With this in mind, here’s how the AppRoutes service can be used:root()
method that returns the AppUrl for the root path of a given feature module. For example:super(injector)
added the to the body of the constructor.