Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchService

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected app

Protected opts

opts: Options

Methods

fetchProducts

  • fetchProducts(urlState: History): void
  • Fetches products based on the values in the given state.

    Parameters

    • urlState: History

      The current history state.

    Returns void

getPastSearchTerms

  • getPastSearchTerms(): string[]

init

  • init(): void

pushSearchTerm

  • pushSearchTerm(term: string): string[]
  • Stores the given search term in a cookie.

    Parameters

    • term: string

      The term to store.

    Returns string[]

    The list of search terms stored.

pushState

  • pushState(): void
  • Stores the current search term, sends an event to hide sayt, and pushes a search route to history.

    Returns void

Generated using TypeDoc