Fix anchor links when navigating to current anchor

This commit is contained in:
hunicus
2022-03-11 19:06:06 -05:00
parent b407c97d67
commit 0f0b2ab0f6
4 changed files with 19 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<div *ngFor="let item of restDocs">
<p *ngIf="( item.type === 'category' ) && ( item.showConditions.indexOf(network.val) > -1 )">{{ item.title }}</p>
<a *ngIf="( item.type !== 'category' ) && ( item.showConditions.indexOf(network.val) > -1 )" [routerLink]="['./']" fragment="{{ item.fragment }}" (click)="collapseItem.toggle()">{{ item.title }}</a>
<a *ngIf="( item.type !== 'category' ) && ( item.showConditions.indexOf(network.val) > -1 )" [routerLink]="['./']" fragment="{{ item.fragment }}" (click)="navLinkClick($event)">{{ item.title }}</a>
</div>