New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-href

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-href - npm Package Compare versions

Comparing version 16.0.3 to 17.0.0

8

lib/href.directive.d.ts

@@ -1,6 +0,6 @@

import { ElementRef } from '@angular/core';
import { ElementRef, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { NgxHrefService } from './href.service';
import * as i0 from "@angular/core";
export declare class NgxHrefDirective {
export declare class NgxHrefDirective implements OnDestroy {
private _elementRef;

@@ -15,2 +15,5 @@ private _router;

set href(value: string);
private _hrefAttr?;
private _mouseenterListener;
private _clickListener;
constructor(_elementRef: ElementRef, _router: Router, _ngxHrefService: NgxHrefService);

@@ -23,4 +26,5 @@ private _isLinkMailOrPhone;

private _prepareRouteToClick;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxHrefDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxHrefDirective, "a[href], button[href]", never, { "rel": { "alias": "rel"; "required": false; }; "href": { "alias": "href"; "required": false; }; }, {}, never, never, true, never>;
}
export interface NgxHrefServiceConfig {
avoidSpam?: boolean;
behavior?: ScrollBehavior;

@@ -3,0 +4,0 @@ navbarOffset?: number;

@@ -6,2 +6,3 @@ import { BehaviorSubject } from 'rxjs';

anchor$: BehaviorSubject<string | null>;
avoidSpam?: boolean;
behavior: ScrollBehavior;

@@ -8,0 +9,0 @@ defaultOffset: number;

{
"name": "ngx-href",
"version": "16.0.3",
"version": "17.0.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Raphael Balet",

# @ngx-href [![npm version](https://img.shields.io/npm/v/ngx-href.svg)](https://www.npmjs.com/package/ngx-href)
A library that allows href to understand Angular's router while retaining its default functionality.
[![BuyMeACoffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://www.buymeacoffee.com/widness)
1. Use `router.navigate()` for [internal link](#angular-routing)

@@ -14,2 +12,3 @@ 2. Support scroll with the `#` attributes and let you configure the [scrolling logic](#scroll-logic)

- [Angular routing](#angular-routing)
- [Avoid Spam](#avoid-spam)
- [Scroll logic](#scroll-logic)

@@ -40,2 +39,3 @@ - [Behavior](#behavior)

/** Default
* avoidSpam="false"
* behavior="auto"

@@ -51,2 +51,3 @@ * defaultOffset="0"

ngxHrefModule.forRoot({
avoidSpam: true,
behavior:"smooth",

@@ -64,2 +65,6 @@ defaultOffset:"30",

## Avoid Spam
1. Change the `href` from the DOM from `example@outlook.com` into `example(at)outlook.com`
2. Let js handle the click event.
## Scroll logic

@@ -199,1 +204,3 @@ ### Behavior

* maintainer [Raphaël Balet](https://github.com/rbalet)
[![BuyMeACoffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://www.buymeacoffee.com/widness)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc