Skip to content

Commit

Permalink
chore: support rel property for links (#6877)
Browse files Browse the repository at this point in the history
Co-authored-by: taiga-family-bot <[email protected]>
  • Loading branch information
splincode and taiga-family-bot authored Mar 4, 2024
1 parent 6ca6efd commit 6ee997a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
>
<a
*ngFor="let item of group"
rel="noopener noreferrer"
tuiOption
[fragment]="item.fragment"
[routerLink]="item.route"
[target]="item.target"
[target]="item.target || '_self'"
(click)="onClick(input)"
>
{{ item.title }}
Expand Down Expand Up @@ -79,11 +80,12 @@
>
<a
*ngIf="!item.subPages; else subPagesTemplate"
rel="noopener noreferrer"
routerLinkActive="t-sublink_active"
tuiLink
class="t-sublink"
[routerLink]="item.route"
[target]="item.target"
[target]="item.target || '_self'"
[tuiScrollIntoViewLink]="isActive(item.route)"
(click)="closeMenu()"
>
Expand Down Expand Up @@ -127,12 +129,13 @@
<div class="t-section t-section_bordered">
<a
*ngFor="let subPage of $pages(item.subPages)"
rel="noopener noreferrer"
routerLinkActive="t-sublink_active"
tuiLink
class="t-sublink t-sublink_small"
[fragment]="subPage.fragment"
[routerLink]="subPage.route"
[target]="item.target"
[target]="subPage.target || '_self'"
[tuiScrollIntoViewLink]="isActive(subPage.route)"
(click)="closeMenu()"
>
Expand Down

0 comments on commit 6ee997a

Please sign in to comment.