mat-nav-bar missing example for method updateActiveLinks
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
https://github.com/angular/material2/blob/a6c6a58cc4bccddeb87ad71b33a849527e23c462/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts#L118-L123
The [docs](https://material.angular.io/components/tabs/api#MatTabNav) do not provide any explanation of how to access this method. Tried checking other methods that I have used but nothing works.
Is this this correct?
`@ViewChild( 'tabs' ) tabs: MatTabNav;`
Even tried this:
`@ViewChild( 'MatTabNav' ) tabs: MatTabNav;`
I feel like I am missing something important
`this.whatshouldthisbe.updateActiveLink( '#tabs' )`
As a side note, many other times I feel the source code makes far more sense than the docs do. Do I need to fully understand the source in order to make sense of the docs?
コントリビューションガイド
調査の方向性
リンクされている tab-nav-bar.ts のソースの 118~123 行付近と、MatTabNav API ドキュメントから始めてください。示されているテンプレートから報告された updateActiveLink/updateActiveLinks メソッドにどのようにアクセスしているかを確認し、その後、説明と動作する例を追加してドキュメントを更新してください。新しく参加する人が ViewChild 参照を推測しなくても例に従えるようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- documentation, frontend
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100