0
私は次のコードを持っている:Angular2材料アクセス]タブの外側それ
<md-tab-group>
<md-tab *ngFor="let section of sectionList">
<template md-tab-label>
<span (click)="selectedSection=section">
{{section.name}}
</span>
</template>
</md-tab>
</md-tab-group>
私はタブループ外現在の選択したセクション(section
オブジェクト)のデータを表示することができますどのように?
span
に(click)
を追加しようとしましたが、トリガーできませんでした。
[Plunker](https://plnkr.co/)を入力してください。 –