tagNavigation
Tags a BrowserSDK:TaggableElement to be tracked as NavigationContext.
tagNavigation = (parameters: {
id: string,
options?: TagLocationOptions,
onError?: TrackerErrorHandlerCallback
}) => TagLocationReturnValue
info
This attribute directive builds on top of BrowserSDK:tagNavigation
Parameters
type | default value | ||
---|---|---|---|
required | id | string | |
optional | options | BrowserSDK:TagLocationOptions | |
optional | onError | BrowserSDK:TrackerErrorHandlerCallback | TrackerConsole.error |
Returns
BrowserSDK:TagLocationReturnValue
Examples
<nav [tagNavigation]="{ id: 'navigation-id' }">
...
</nav>