# @releasium/ngx-simple-scroll

> Angular library that make ability scroll to particular element using service or directive.

Latest version **1.0.1** (published 2021-02-25) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @releasium/ngx-simple-scroll
pnpm add @releasium/ngx-simple-scroll
yarn add @releasium/ngx-simple-scroll
bun add @releasium/ngx-simple-scroll
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-02-25 |
| First published | 2021-01-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 95.1 KB |
| Known vulnerabilities | 0 (+24 in 4 direct dependencies) |
| Install scripts | no |
| Maintainers | konstantink |
| Keywords | scroll, scroll2, simple scroll, scroll to, ngx-scroll, ngx-scroll-to, autoscroll, angular10, angular 2+, angular2, angular 11, ng, ng2, ngx, scroll to element |

## Links

- npm: https://www.npmjs.com/package/@releasium/ngx-simple-scroll
- Repository: https://github.com/releasium/ngx-simple-scroll
- Homepage: https://github.com/releasium/ngx-simple-scroll#readme
- Issues: https://github.com/releasium/ngx-simple-scroll/issues
- npm.io page: https://npm.io/package/@releasium/ngx-simple-scroll

## Dependencies (11)

- [rxjs](https://npm.io/package/rxjs.md) ~6.6.0
- [tslib](https://npm.io/package/tslib.md) ^2.0.0
- [zone.js](https://npm.io/package/zone.js.md) ~0.10.2
- [@angular/core](https://npm.io/package/@angular/core.md) ~10.1.5
- [@angular/forms](https://npm.io/package/@angular/forms.md) ~10.1.5
- [@angular/common](https://npm.io/package/@angular/common.md) ~10.1.5
- [@angular/router](https://npm.io/package/@angular/router.md) ~10.1.5
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) ~10.1.5
- [@angular/animations](https://npm.io/package/@angular/animations.md) ~10.1.5
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) ~10.1.5
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) ~10.1.5

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-02-25
- 1.0.0 — 2021-01-21
- 0.0.3 — 2021-01-21
- 0.0.2 — 2021-01-21
- 0.0.1 — 2021-01-20

## README

# ngx-simple-scroll
Angular library that make ability scroll to particular element using service or directive.

# Example of using NgxSimpleScrollService
```
    const scrollToServiceConfig = {
      targetSelector: `#targetId`,
      async: true,
    };

    this.ngxNgxSimpleScrollService.scrollTo(scrollToServiceConfig);
```

# Example of extending NgxSimpleScrollDirective
```
@Directive({
	selector: '[scrollToError]'
})

export class ScrollToErrorDirective extends NgxSimpleScrollDirective {
	@Input() targetSelector = 'form-msg:not(:empty)';
	@Input() async = true;
	@Input() scrollToFocus = true;
	@Input() scrollToParent = true;
	@Input() parentSelector = '.form-group';
	@Input() scrollToAnimatedObject = false;
}
```

---
_Source: https://npm.io/package/@releasium/ngx-simple-scroll · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
