Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-page-scroll

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-page-scroll - npm Package Compare versions

Comparing version 6.0.0-beta.0 to 6.0.0-beta.1

21

bundles/ngx-page-scroll.umd.js

@@ -9,3 +9,3 @@ (function (global, factory) {

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -142,9 +142,14 @@ var NgxPageScrollDirective = /** @class */ (function () {

/** @type {?} */
var subscription_1 = ( /** @type {?} */(this.router.events.subscribe(function (routerEvent) {
var subscription_1 = ( /** @type {?} */(this.router.events.subscribe(( /**
* @param {?} routerEvent
* @return {?}
*/function (routerEvent) {
if (routerEvent instanceof router.NavigationEnd) {
subscription_1.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout(function () {
setTimeout(( /**
* @return {?}
*/function () {
_this.scroll();
}, 0);
}), 0);
}

@@ -154,3 +159,3 @@ else if (routerEvent instanceof router.NavigationError || routerEvent instanceof router.NavigationCancel) {

}
})));
}))));
return false; // to preventDefault()

@@ -197,3 +202,3 @@ }

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -221,3 +226,3 @@ var NgxPageScrollModule = /** @class */ (function () {

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -227,3 +232,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -230,0 +235,0 @@

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -121,9 +121,16 @@ /* tslint:disable:use-host-property-decorator directive-selector */

/** @type {?} */
const subscription = (/** @type {?} */ (this.router.events.subscribe((routerEvent) => {
const subscription = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
(routerEvent) => {
if (routerEvent instanceof NavigationEnd) {
subscription.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout(() => {
setTimeout((/**
* @return {?}
*/
() => {
this.scroll();
}, 0);
}), 0);
}

@@ -133,3 +140,3 @@ else if (routerEvent instanceof NavigationError || routerEvent instanceof NavigationCancel) {

}
})));
}))));
return false; // to preventDefault()

@@ -216,2 +223,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtcGFnZS1zY3JvbGwuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBRUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFHTCxRQUFRLEVBQ1IsTUFBTSxFQUVQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxhQUFhLEVBQUUsZUFBZSxFQUFFLE1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HRvIHN0YXJ0IHNjcm9sbGluZyBhcyBzb29uIGFzIHRoZSBzdGFjayBpcyBjbGVhcmVkXG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgdGhpcy5zY3JvbGwoKTtcbiAgICAgICAgICAgIH0sIDApO1xuICAgICAgICAgIH0gZWxzZSBpZiAocm91dGVyRXZlbnQgaW5zdGFuY2VvZiBOYXZpZ2F0aW9uRXJyb3IgfHwgcm91dGVyRXZlbnQgaW5zdGFuY2VvZiBOYXZpZ2F0aW9uQ2FuY2VsKSB7XG4gICAgICAgICAgICBzdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiBmYWxzZTsgLy8gdG8gcHJldmVudERlZmF1bHQoKVxuICAgICAgfVxuICAgIH1cbiAgICB0aGlzLnNjcm9sbCgpO1xuXG4gICAgcmV0dXJuIGZhbHNlOyAvLyB0byBwcmV2ZW50RGVmYXVsdCgpXG4gIH1cbn1cbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ import { NgModule } from '@angular/core';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ /**

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ /*

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -140,9 +140,16 @@ /* tslint:disable:use-host-property-decorator directive-selector */

/** @type {?} */
var subscription_1 = (/** @type {?} */ (this.router.events.subscribe(function (routerEvent) {
var subscription_1 = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
function (routerEvent) {
if (routerEvent instanceof NavigationEnd) {
subscription_1.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout(function () {
setTimeout((/**
* @return {?}
*/
function () {
_this.scroll();
}, 0);
}), 0);
}

@@ -152,3 +159,3 @@ else if (routerEvent instanceof NavigationError || routerEvent instanceof NavigationCancel) {

}
})));
}))));
return false; // to preventDefault()

@@ -237,2 +244,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtcGFnZS1zY3JvbGwuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBRUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFHTCxRQUFRLEVBQ1IsTUFBTSxFQUVQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxhQUFhLEVBQUUsZUFBZSxFQUFFLE1BQU0sRUFBVyxNQUFNLGlCQUFpQixDQUFDO0FBQ3BHLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUczQyxPQUFPLEVBQXNELGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLEN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tcbiAgICAgICAgICAgIC8vIHVzZSBhIHRpbWVvdXQgdG8gc3RhcnQgc2Nyb2xsaW5nIGFzIHNvb24gYXMgdGhlIHN0YWNrIGlzIGNsZWFyZWRcbiAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgICB0aGlzLnNjcm9sbCgpO1xuICAgICAgICAgICAgfSwgMCk7XG4gICAgICAgICAgfSBlbHNlIGlmIChyb3V0ZXJFdmVudCBpbnN0YW5jZW9mIE5hdmlnYXRpb25FcnJvciB8fCByb3V0ZXJFdmVudCBpbnN0YW5jZW9mIE5hdmlnYXRpb25DYW5jZWwpIHtcbiAgICAgICAgICAgIHN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIGZhbHNlOyAvLyB0byBwcmV2ZW50RGVmYXVsdCgpXG4gICAgICB9XG4gICAgfVxuICAgIHRoaXMuc2Nyb2xsKCk7XG5cbiAgICByZXR1cm4gZmFsc2U7IC8vIHRvIHByZXZlbnREZWZhdWx0KClcbiAgfVxufVxuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ import { NgModule } from '@angular/core';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ /**

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ /*

@@ -8,3 +8,3 @@ import { Directive, EventEmitter, Inject, Input, Optional, Output, NgModule } from '@angular/core';

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -122,9 +122,16 @@ class NgxPageScrollDirective {

/** @type {?} */
const subscription = (/** @type {?} */ (this.router.events.subscribe((routerEvent) => {
const subscription = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
(routerEvent) => {
if (routerEvent instanceof NavigationEnd) {
subscription.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout(() => {
setTimeout((/**
* @return {?}
*/
() => {
this.scroll();
}, 0);
}), 0);
}

@@ -134,3 +141,3 @@ else if (routerEvent instanceof NavigationError || routerEvent instanceof NavigationCancel) {

}
})));
}))));
return false; // to preventDefault()

@@ -174,3 +181,3 @@ }

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -195,3 +202,3 @@ class NgxPageScrollModule {

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -201,3 +208,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -204,0 +211,0 @@

@@ -8,3 +8,3 @@ import { Directive, EventEmitter, Inject, Input, Optional, Output, NgModule } from '@angular/core';

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -141,9 +141,16 @@ var NgxPageScrollDirective = /** @class */ (function () {

/** @type {?} */
var subscription_1 = (/** @type {?} */ (this.router.events.subscribe(function (routerEvent) {
var subscription_1 = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
function (routerEvent) {
if (routerEvent instanceof NavigationEnd) {
subscription_1.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout(function () {
setTimeout((/**
* @return {?}
*/
function () {
_this.scroll();
}, 0);
}), 0);
}

@@ -153,3 +160,3 @@ else if (routerEvent instanceof NavigationError || routerEvent instanceof NavigationCancel) {

}
})));
}))));
return false; // to preventDefault()

@@ -194,3 +201,3 @@ }

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -218,3 +225,3 @@ var NgxPageScrollModule = /** @class */ (function () {

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -224,3 +231,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -227,0 +234,0 @@

{
"name": "ngx-page-scroll",
"version": "6.0.0-beta.0",
"version": "6.0.0-beta.1",
"description": "Convenience directive for animated scrolling functionality for angular written in pure typescript",
"keywords": [
"angular",
"angularjs",
"page",
"scroll",
"pagescroll",
"animate",
"move",
"scrollto",
"anchor"
],
"author": "Sebastian Fuss <sebastian.fuss@googlemail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/Nolanus/ngx-page-scroll.git"
},
"bugs": {
"url": "https://github.com/Nolanus/ngx-page-scroll/issues"
},
"homepage": "https://github.com/Nolanus/ngx-page-scroll#readme",
"peerDependencies": {

@@ -5,0 +27,0 @@ "ngx-page-scroll-core": "6.0.0-beta.0",

@@ -6,5 +6,5 @@ # ngx-page-scroll [![npm version](https://img.shields.io/npm/v/ngx-page-scroll.svg?style=flat)](https://www.npmjs.com/package/ngx-page-scroll) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

[![Build Status](https://travis-ci.org/Nolanus/ngx-page-scroll.svg?branch=master)](https://travis-ci.org/Nolanus/ngx-page-scroll)
[![Dependency Status](https://david-dm.org/Nolanus/ngx-page-scroll.svg)](https://david-dm.org/Nolanus/ngx-page-scroll)
[![devDependency Status](https://david-dm.org/Nolanus/ngx-page-scroll/dev-status.svg)](https://david-dm.org/Nolanus/ngx-page-scroll?type=dev)
[![peerDependency Status](https://david-dm.org/Nolanus/ngx-page-scroll/peer-status.svg)](https://david-dm.org/Nolanus/ngx-page-scroll?type=peer)
[![Dependencies Status](https://david-dm.org/Nolanus/ngx-page-scroll.svg?path=projects/ngx-page-scroll)](https://david-dm.org/Nolanus/ngx-page-scroll?path=projects/ngx-page-scroll)
[![devDependencies Status](https://david-dm.org/Nolanus/ngx-page-scroll/dev-status.svg?path=projects/ngx-page-scroll)](https://david-dm.org/Nolanus/ngx-page-scroll?path=projects/ngx-page-scroll&type=dev)
[![peerDependencies Status](https://david-dm.org/Nolanus/ngx-page-scroll/peer-status.svg?path=projects/ngx-page-scroll)](https://david-dm.org/Nolanus/ngx-page-scroll?path=projects/ngx-page-scroll&type=peer)
[![Greenkeeper badge](https://badges.greenkeeper.io/Nolanus/ngx-page-scroll.svg)](https://greenkeeper.io/)

@@ -67,3 +67,3 @@ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/2b93ea8939824803b0807b72a8c2f5a0)](https://www.codacy.com/app/sebastian-fuss/ngx-page-scroll?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Nolanus/ngx-page-scroll&amp;utm_campaign=Badge_Grade)

import { DOCUMENT, Inject } from '@angular/common';
import { PageScrollService } from 'ngx-page-scroll';
import { PageScrollService } from 'ngx-page-scroll-core';

@@ -70,0 +70,0 @@ export class MyComponent {

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