mat-nav-bar missing example for method updateActiveLinks
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
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?
Guía de contribución
Línea de trabajo
Comienza con el código fuente tab-nav-bar.ts enlazado, alrededor de las líneas 118-123, y con la documentación de la API de MatTabNav. Verifica cómo se accede al método updateActiveLink/updateActiveLinks indicado desde la plantilla mostrada y, después, actualiza la documentación con una explicación y un ejemplo funcional; se considerará terminado cuando los recién llegados puedan seguir el ejemplo sin tener que adivinar la referencia de ViewChild.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- documentation, frontend
- Tipo de issue
- Documentación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100