Skip to content

Commit

Permalink
add - avoidSpam
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Balet committed Nov 13, 2023
1 parent ccd5b6e commit 70dcdff
Show file tree
Hide file tree
Showing 8 changed files with 478 additions and 408 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -34,6 +35,7 @@ import { ngxHrefModule, ngxHrefService } from 'ngx-href'

imports: [
/** Default
* avoidSpam="false"
* behavior="auto"
* defaultOffset="0"
* navbarOffset="0"
Expand All @@ -44,6 +46,7 @@ import { ngxHrefModule, ngxHrefService } from 'ngx-href'

// Or
ngxHrefModule.forRoot({
avoidSpam: true,
behavior:"smooth",
defaultOffset:"30",
navbarOffset:"60",
Expand All @@ -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"`
Expand Down
Loading

0 comments on commit 70dcdff

Please sign in to comment.