Functions

forwardParams

This function inserts parameters into the route state and outputs a ready-made dynamic state.

Args:

/*
* Params interface describes an object which has string key
*/

(
  state: string[],
  params?: Params
)

Return Type:

string[]

Usage example:

const url = forwardParams(userUnit.user.state, { id: 15 };
this.router.navigate(url);

// or

this.router.navigate(forwardParams(userUnit.user.state, { id: 15 })

getRegisteredUnits

A function that returns all declared units in the application (hub)

Generic Type:

Args:

Return Type:

Usage example:

getUnit

A function that returns a unit by an identifier (key or name)

Generic Type:

Args:

Return Type:

Usage example:

connectFeatures

It connects feature-connector with parent routes.

Generic Type:

Args:

Return Type:

Usage example:

Last updated

Was this helpful?