A registry for parameter types.

This registry manages the built-in (and custom) parameter types.

The built-in parameter types are:

  • [[string]]
  • [[path]]
  • [[query]]
  • [[hash]]
  • [[int]]
  • [[bool]]
  • [[date]]
  • [[json]]
  • [[any]]

To register custom parameter types, use [[UrlConfig.type]], i.e.,

router.urlService.config.type(customType)

Constructors

Properties

defaultTypes: {}
enqueue: boolean
typeQueue: any[]
types: any

Methods

  • Registers a parameter type

    End users should call [[UrlMatcherFactory.type]], which delegates to this method.

    Parameters

    • name: any
    • definition: any
    • definitionFn: any

    Returns any