Skip to content

feat(route-tabset): configurable routerLinkActiveOptions - #1239

Merged
nnixaa merged 3 commits into
akveo:masterfrom
yggg:feat/route-tabset-active-link-options
Feb 21, 2019
Merged

feat(route-tabset): configurable routerLinkActiveOptions#1239
nnixaa merged 3 commits into
akveo:masterfrom
yggg:feat/route-tabset-active-link-options

Conversation

@yggg

@yggg yggg commented Feb 15, 2019

Copy link
Copy Markdown
Contributor

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

Allow to configure routerLinkActiveOptions. Currently, after navigation to child routes within same tab, it loses active style because of harcoded [routerLinkActiveOptions]="{ exact: true }".

@yggg
yggg requested a review from nnixaa February 15, 2019 10:06
@yggg yggg mentioned this pull request Feb 15, 2019
@nnixaa nnixaa added this to the 3.4.0 milestone Feb 18, 2019
* Options passed to `routerLinkActiveOptions` directive which set on tab links.
* `{ exact: true }` by default.
*/
@Input() activeLinkOptions = { exact: true };

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add :any or better LinkOptions type here? As = { exact: true } matches activeLinkOptions variable to the exact type.

@nnixaa
nnixaa merged commit 3cf29d8 into akveo:master Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants