Directive that can close targets through provided NavigationService.

Usage:

<button type="button" igxNavClose="ID">Close</button>

Where the ID matches the ID of compatible IToggleView component.

new IgxNavigationCloseDirective(): IgxNavigationCloseDirective

Defined in projects/igniteui-angular/core/src/core/navigation/directives.ts:68

Returns IgxNavigationCloseDirective

The ID of the target registered in the navigation service, which is closed on click.

target: any

Defined in projects/igniteui-angular/core/src/core/navigation/directives.ts:64

Example

<button type="button" igxNavClose="navDrawer">Close</button>
closeNavigationDrawer(): void

Defined in projects/igniteui-angular/core/src/core/navigation/directives.ts:75

Returns void