mat-nav-bar missing example for method updateActiveLinks
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
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?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par le code source tab-nav-bar.ts lié, autour des lignes 118 à 123, ainsi que par la documentation de l’API MatTabNav. Vérifiez comment la méthode updateActiveLink/updateActiveLinks mentionnée est utilisée depuis le template affiché, puis mettez à jour la documentation avec une explication et un exemple fonctionnel ; le travail sera considéré comme terminé lorsque les nouveaux contributeurs pourront suivre l’exemple sans avoir à deviner la référence ViewChild.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- documentation, frontend
- Type d'issue
- Documentation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100