GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • Check if a URL is active

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — isActive • Angular

API

function isActive(
  url: string | UrlTree,
  router: Router,
  matchOptions?: Partial<IsActiveMatchOptions> | undefined,
): Signal<boolean>;
@paramurlstring | UrlTree
@paramrouterRouter
@parammatchOptionsPartial<IsActiveMatchOptions> | undefined
@returnsSignal<boolean>

Description

Returns a computed signal of whether the given url is activated in the Router.

As the router state changes, the signal will update to reflect whether the url is active.

When using the matchOptions argument, any missing properties fall back to the following defaults:

  • paths: 'subset'
  • queryParams: 'subset'
  • matrixParams: 'ignored'
  • fragment: 'ignored'
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.