We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c1a16d commit c5ca597Copy full SHA for c5ca597
devtools/projects/ng-devtools/src/lib/devtools-tabs/devtools-tabs.component.ts
@@ -95,6 +95,13 @@ export class DevToolsTabsComponent {
95
this.routes.set(routes || []);
96
});
97
98
+ // Change the tab to Components, if an element is selected via the inspector.
99
+ this._messageBus.on('selectComponent', () => {
100
+ if (this.activeTab() !== 'Components') {
101
+ this.changeTab('Components');
102
+ }
103
+ });
104
+
105
if (typeof chrome !== 'undefined' && chrome.runtime !== undefined) {
106
this.extensionVersion.set(chrome.runtime.getManifest().version);
107
}
0 commit comments