-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raphael Balet
committed
Nov 13, 2023
1 parent
ccd5b6e
commit 70dcdff
Showing
8 changed files
with
478 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ A library that allows href to understand Angular's router while retaining its de | |
- [@ngx-href ](#ngx-href-) | ||
- [Installation](#installation) | ||
- [Angular routing](#angular-routing) | ||
- [Avoid Spam](#avoid-spam) | ||
- [Scroll logic](#scroll-logic) | ||
- [Behavior](#behavior) | ||
- [defaultOffset](#defaultoffset) | ||
|
@@ -34,6 +35,7 @@ import { ngxHrefModule, ngxHrefService } from 'ngx-href' | |
|
||
imports: [ | ||
/** Default | ||
* avoidSpam="false" | ||
* behavior="auto" | ||
* defaultOffset="0" | ||
* navbarOffset="0" | ||
|
@@ -44,6 +46,7 @@ import { ngxHrefModule, ngxHrefService } from 'ngx-href' | |
|
||
// Or | ||
ngxHrefModule.forRoot({ | ||
avoidSpam: true, | ||
behavior:"smooth", | ||
defaultOffset:"30", | ||
navbarOffset:"60", | ||
|
@@ -56,6 +59,10 @@ import { ngxHrefModule, ngxHrefService } from 'ngx-href' | |
## Angular routing | ||
Nothing to do it should work out of the box | ||
|
||
## Avoid Spam | ||
1. Change the `href` from the DOM from `[email protected]` into `example(at)outlook.com` | ||
2. Let js handle the click event. | ||
|
||
## Scroll logic | ||
### Behavior | ||
**Default:** `"auto"` | ||
|
Oops, something went wrong.