Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(route-tabset): configurable routerLinkActiveOptions #1239

Merged
merged 3 commits into from
Feb 21, 2019
Merged

feat(route-tabset): configurable routerLinkActiveOptions #1239

merged 3 commits into from
Feb 21, 2019

Conversation

yggg
Copy link
Contributor

@yggg yggg commented Feb 15, 2019

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
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