Skip to content

Commit

Permalink
feat(route-tabset): configurable routerLinkActiveOptions (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg authored and nnixaa committed Feb 21, 2019
1 parent 799b8b8 commit 3cf29d8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import { convertToBoolProperty } from '../helpers';
<li (click)="$event.preventDefault(); selectTab(tab)"
[routerLink]="tab.route"
routerLinkActive="active"
[routerLinkActiveOptions]="{ exact: true }"
[routerLinkActiveOptions]="activeLinkOptions"
[class.responsive]="tab.responsive"
tabindex="0"
class="route-tab">
Expand All @@ -102,6 +102,12 @@ export class NbRouteTabsetComponent {
*/
@Input() tabs: any[];

/**
* Options passed to `routerLinkActiveOptions` directive which set on tab links.
* `{ exact: true }` by default.
*/
@Input() activeLinkOptions = { exact: true };

/**
* Take full width of a parent
* @param {boolean} val
Expand Down

0 comments on commit 3cf29d8

Please sign in to comment.