api

Helpers

IsActive

$isActive (path, params, options)

Returns true for active paths.

path: string

The internal path to the URL, eg.: /blog/[slug]/comments

params: object

The parameters to be used in the URL. Parameters not used in the path will be appended to the url as a query string.

options: urlOptions (default: { recursive: true })

urlOptions

recursive: boolean

Returns true if a descendant of the path is active




Need a developer? Hire me!