Navigating to routes created in new flow
You can navigate to routes that are created in a new flow either by creating a new
portlet or any of the existing screens in the application based on your business
requirement.
To navigate to a route in the new flow from portlet or any page component by using the
StoreRouterService custom router service that is present in
@store/core angular library. You must use
StoreRouterService.navigateToURL() for routing within the application.
The following code snippet illustrates the same:
mport { StoreRouterService} from '@store/core';
....
....
constructor(
private router: Router,
private storeRouterService: StoreRouterService) { }
....
....
public openCustomPage() {
this.storeRouterService.navigateToURL('<feature-name>/<route-path>', this.router); // NOTE: Method signature in case of NO query params and path params in the route.
this.storeRouterService.navigateToURL('<feature-name>/<route-path>/'+invoiceKey, this.router, {queryParams: {paramName: paramValue}}); // NOTE: Method signature in case of query params and path params in the route.
}