Skip to main content

foundation-header.navigation.hasactivechild

Home > @genesislcap/foundation-header > Navigation > hasActiveChild

Check if any child nav item matches the current route

Signature:

hasActiveChild(navItem: FoundationRouteNavItem): boolean;

Parameters

Parameter

Type

Description

navItem

FoundationRouteNavItem

The navigation item to check

Returns:

boolean

true if any child matches the current path