File tree 2 files changed +3
-3
lines changed
apps/daffio/src/app/docs/components/doc-article
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
@if (breadcrumbs.length > 0) {
9
9
< nav aria-label ="Breadcrumb ">
10
10
< ol daff-breadcrumb >
11
- @for (breadcrumb of breadcrumbs() ; track $index) {
11
+ @for (breadcrumb of breadcrumbs; track $index) {
12
12
< li daffBreadcrumbItem [active] ="$last ">
13
13
@if ($last) {
14
14
{{breadcrumb.label}}
24
24
< ng-content > </ ng-content >
25
25
</ daff-article >
26
26
</ div >
27
- @if (toc) {
27
+ @if (toc.length > 0 ) {
28
28
< daffio-docs-table-of-contents
29
29
class ="daffio-doc-article__table-of-contents "
30
30
[tableOfContents] ="toc ">
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class DaffioDocArticleComponent {
26
26
private sidebarService : DaffioSidebarService ,
27
27
) { }
28
28
29
- @Input ( ) toc ? : DaffDocTableOfContents ;
29
+ @Input ( ) toc : DaffDocTableOfContents = [ ] ;
30
30
@Input ( ) breadcrumbs : Array < DaffBreadcrumb > = [ ] ;
31
31
32
32
open ( ) {
You can’t perform that action at this time.
0 commit comments