href="/home/second": Go to the second page (sibling)
href="#scrollToMe"Scroll to the title
href="https://...": Open the new page in a new page
href="https://..." & target="_self": Open the new page in the current page @@ -30,7 +28,7 @@
href="tel:...": Custom the href till hovering - Look at the DOM with your dev tool diff --git a/projects/ngx-href/README.md b/projects/ngx-href/README.md index 4869d68..022af5a 100644 --- a/projects/ngx-href/README.md +++ b/projects/ngx-href/README.md @@ -25,7 +25,7 @@ npm install ngx-href Inside your `app.module.ts` file. ```typescript -import { ngxHrefModule, ngxHrefService } from 'ngx-href' +import { NgxHrefModule } from 'ngx-href' imports: [ /** Default @@ -37,10 +37,10 @@ import { ngxHrefModule, ngxHrefService } from 'ngx-href' * retryTimeout=undefined * target="_self" **/ - ngxHrefModule.forRoot({}), + NgxHrefModule.forRoot({}), // Or - ngxHrefModule.forRoot({ + NgxHrefModule.forRoot({ avoidSpam: true, behavior:"smooth", defaultOffset:"30", @@ -164,6 +164,15 @@ Normal use An external link + + + tel:+41791112233 + + + + + mailto:foobar@outlook.com +