Options
All
  • Public
  • Public/Protected
  • All
Menu

Controls which page to load

Hierarchy

Index

Constructors

constructor

Properties

app

app: IApp

The App the ManagerItem is attached to

cacheIgnore

cacheIgnore: boolean | TypeIgnoreURLsList

URLs to ignore caching

config

config: ICONFIG

The Config of the App the ManagerItem is attached to

emitter

emitter: EventEmitter

The EventEmitter of the App the ManagerItem is attached to

key

key: any

The key to where ManagerItem is stored in an AdvancedManager

loading

loading: Manager<string, Promise<string>> = ...

Stores all fetch requests that are currently loading

manager

The AdvancedManager the ManagerItem is attached to

pages

pages: AdvancedManager<string, Page>

Accessors

size

  • get size(): number

Methods

add

boot

  • boot(...args: any): any

clear

get

  • get(key: string): Page

has

  • has(key: string): boolean

init

  • init(...args: any): any
  • Called before the start of a Service, represents a constructor of sorts

    Parameters

    • Rest ...args: any

    Returns any

initEvents

  • initEvents(): void

install

  • install(): void

keys

  • keys(): string[]

load

  • load(_url?: string | URL): Promise<Page>
  • Load from cache or by requesting URL via a fetch request, avoid requesting for the same thing twice by storing the fetch request in "this.loading"

    Parameters

    • _url: string | URL = ...

    Returns Promise<Page>

register

remove

request

  • request(url: string): Promise<string>

set

stop

  • stop(): void

stopEvents

  • stopEvents(): void

uninstall

  • uninstall(): any

unregister

  • unregister(): void

Generated using TypeDoc