我有:
<md-tab-group color="primary">
<md-tab label="???????">
<h1>Some tab content</h1>
</md-tab>
<md-tab label="????????">
<h1>Some more tab content</h1>
<p>...</p>
</md-tab>
</md-tab-group>
Run Code Online (Sandbox Code Playgroud)
我需要在单击特定选项卡时捕获事件并在我的组件中调用此函数:
onLinkClick() {
this.router.navigate(['contacts']);
}
Run Code Online (Sandbox Code Playgroud)