@legumeinfo/web-components
    Preparing search index...

    Class LisQueryStringParametersController

    A controller that allows components to interact with URL query string parameters in a manner that triggers changes in the component's template when parameter values change.

    Implements

    • ReactiveController
    Index

    Constructors

    Methods

    • Gets the value of a URL query string parameter. This is reactive when used inside a component template.

      Parameters

      • name: string

        The name of the parameter to get the value of.

      • defaultValue: string = ''

        The default value to return if the parameter isn't in the query string.

      Returns string

      The value of the parameter or the default value provided.