Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RouterService

Hierarchy

  • RouterService

Index

Constructors

constructor

Properties

_factory

_factory: RouteFactory

_routerAfterMiddleware

_routerAfterMiddleware: AfterMiddleware[]

_routerBeforeMiddleware

_routerBeforeMiddleware: BeforeMiddleware[]

_settings

_settings: RouteSettings

Accessors

beforeMiddleware

  • get beforeMiddleware(): (to: Route, from: Route, next: any) => boolean
  • Returns (to: Route, from: Route, next: any) => boolean

      • (to: Route, from: Route, next: any): boolean
      • Parameters

        • to: Route
        • from: Route
        • next: any

        Returns boolean

id

  • get id(): string

onCreatePage

  • get onCreatePage(): boolean

onEditPage

  • get onEditPage(): boolean

onOverviewPage

  • get onOverviewPage(): boolean

onShowPage

  • get onShowPage(): boolean

query

  • get query(): {}

Methods

addRoutes

  • addRoutes(routes: RouteConfig[]): void

createRoutes

  • create basic routes for the given settings

    Parameters

    • settings: RouteSettings

      the settings on which the routes are based

    Returns RouteConfig[]

goToRoute

  • goToRoute(name: string, id?: string, query?: {}): void
  • Go to the give route by name, optional id and query If going to a route you are already on, it catches the given error

    Parameters

    • name: string

      the name of the new route

    • Optional id: string
    • Optional query: {}
      • [x: string]: string

    Returns void

newSettings

registerAfterMiddleware

registerBeforeMiddleware

Generated using TypeDoc