File

query-param-modal-handler/query-param-modal-handler.service.ts

Description

Service to manage the display of modals based on URL query parameter.

This service listens for specific query parameters in the URL and opens corresponding modals when detected. It automatically cleans up the query parameters from the URL when the modal is closed or query parameter value passed as 'false'.

Index

Methods

Methods

handleQueryParamModal
handleQueryParamModal(config: QueryParamModalConfig)

Handles the display of a modal based on a specific query parameter.

Parameters :
Name Type Optional Description
config QueryParamModalConfig No
  • Configuration object specifying the query parameter, component, and optional modal settings.
Returns : Observable<ParamMap>

An observable that listens for changes in the query parameter.

results matching ""

    No results matching ""