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 )