Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Class NavModel

    Predicts the next route pattern from the ones before it. Counts decay by half every halfLife observations, and a route the model has never seen (in counts or prior) is never predicted.

    Index
    • records that route came after context, newest route last; an empty context is a no-op

      Parameters

      • context: readonly string[]
      • route: string

      Returns void