Skip to content

Commit 68a37a6

Browse files
authored
fix(toc): quickly switching to API tab can throw exceptions (angular#913)
Fixes angular#909
1 parent a81dabe commit 68a37a6

File tree

1 file changed

+3
-3
lines changed
  • material.angular.io/material.angular.io/material.angular.io/material.angular.io/src/app/shared/table-of-contents

1 file changed

+3
-3
lines changed

material.angular.io/material.angular.io/material.angular.io/material.angular.io/src/app/shared/table-of-contents/table-of-contents.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div *ngFor="let linkSection of _linkSections" class="docs-toc-container">
2-
<div class="docs-toc-heading">{{linkSection.name}}</div>
3-
<nav [attr.aria-label]="linkSection.name + ' Table of Contents'">
2+
<div class="docs-toc-heading">{{linkSection?.name}}</div>
3+
<nav [attr.aria-label]="linkSection?.name + ' Table of Contents'">
44
<a [href]="_rootUrl + '#' + link.id"
5-
*ngFor="let link of linkSection.links; let i = index"
5+
*ngFor="let link of linkSection?.links; let i = index"
66
class="docs-level-{{link.type}} docs-link"
77
[class.docs-active]="link.active">
88
{{link.name}}

0 commit comments

Comments
 (0)