lightning:tabClosed

Indicates that a tab has been closed.

Response

Name Type Description
tabId string The ID of the closed tab.

Example

This example prints a line to the browser’s developer console when a tab is closed.

Component code:

Controller code: