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(module:anchor): url fragment change on click - nzReplace #8464

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

ParsaArvanehPA
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[✔] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

  • Unlike Ant's Anchor, click on an anchor's link does'nt update the fragment of the current URL.
  • We lack the replace option that Ant provides.

What is the new behavior?

  1. In contrast to the Ant's Anchor, the URL fragment now updates accordingly when an anchor link is activated.
  2. The addition of nzReplace provides an option that, when enabled, replaces the current history state without adding a new state to the browser's history stack.

Does this PR introduce a breaking change?

[ ] Yes
[✔] No

Other information

Copy link

zorro-bot bot commented Mar 24, 2024

This preview will be available after the AzureCI is passed.

Copy link

codecov bot commented Mar 24, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 91.60%. Comparing base (297dbec) to head (9f9acf9).
Report is 13 commits behind head on master.

Files Patch % Lines
components/anchor/anchor.component.ts 80.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8464      +/-   ##
==========================================
- Coverage   91.62%   91.60%   -0.02%     
==========================================
  Files         530      530              
  Lines       18391    18400       +9     
  Branches     2813     2815       +2     
==========================================
+ Hits        16850    16856       +6     
  Misses       1225     1225              
- Partials      316      319       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants