lightning:tabClosed

Indicates that a tab has been closed.

NameTypeDescription
tabIdstringThe ID of the closed tab.

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

Component code:

Controller code: