projects/storefrontlib/events/navigation/navigation.event.ts
Indicates that a user navigated to an arbitrary page.
Properties |
|
| context |
Type : PageContext
|
|
The page's context |
| params |
Type : Params
|
|
The current URL's params |
| Optional semanticRoute |
Type : string
|
|
The route's semantic name |
| Static Readonly type |
Type : string
|
Default value : 'NavigationEvent'
|
|
Inherited from
CxEvent
|
|
Defined in
CxEvent:11
|
|
Event's type |
| url |
Type : string
|
|
The current URL |
import { Params } from '@angular/router';
import { CxEvent, PageContext } from '@spartacus/core';
/**
* Indicates that a user navigated to an arbitrary page.
*/
export class NavigationEvent extends CxEvent {
/**
* Event's type
*/
static readonly type = 'NavigationEvent';
/**
* The page's context
*/
context: PageContext;
/**
* The route's semantic name
*/
semanticRoute?: string;
/**
* The current URL
*/
url: string;
/**
* The current URL's params
*/
params: Params;
}