{"id":25158420,"url":"https://github.com/raiper34/ngx-observers","last_synced_at":"2026-04-28T08:31:03.853Z","repository":{"id":58898687,"uuid":"533902026","full_name":"Raiper34/ngx-observers","owner":"Raiper34","description":"Ngx observers is library to allow developer use Resize, Mutation and Intersection observer api like normal output events on some element.","archived":false,"fork":false,"pushed_at":"2023-01-10T19:10:02.000Z","size":957,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T18:18:00.961Z","etag":null,"topics":["angular","intersection","intersection-observer","mutation","mutationobserver","observers","resize","resizeobserver"],"latest_commit_sha":null,"homepage":"https://ngx-observers.netlify.app/modules/ngxobserversmodule","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Raiper34.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-07T19:01:42.000Z","updated_at":"2022-09-07T19:25:51.000Z","dependencies_parsed_at":"2023-02-08T20:00:57.930Z","dependency_job_id":null,"html_url":"https://github.com/Raiper34/ngx-observers","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raiper34%2Fngx-observers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raiper34%2Fngx-observers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raiper34%2Fngx-observers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raiper34%2Fngx-observers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raiper34","download_url":"https://codeload.github.com/Raiper34/ngx-observers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247005377,"owners_count":20868019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","intersection","intersection-observer","mutation","mutationobserver","observers","resize","resizeobserver"],"created_at":"2025-02-09T01:51:42.538Z","updated_at":"2026-04-28T08:31:03.805Z","avatar_url":"https://github.com/Raiper34.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ngx observers\n[![npm version](https://badge.fury.io/js/ngx-observers.svg)](https://badge.fury.io/js/ngx-observers)\n[![CircleCI](https://circleci.com/gh/Raiper34/ngx-observers.svg?style=shield)](https://circleci.com/gh/Raiper34/ngx-observers)\n[![GitHub issues](https://img.shields.io/github/issues/Raiper34/ngx-observers)](https://github.com/Raiper34/ngx-observers/issues)\n![npm bundle size](https://img.shields.io/bundlephobia/min/ngx-observers)\n![NPM](https://img.shields.io/npm/l/ngx-observers)\n[![docs](https://badgen.net/badge/docs/online/orange)](https://ngx-observers.netlify.app)\n\nNgx observers is library to allow developer use Resize, Mutation and Intersection observer api like normal output events on some element.\n\n## Version compatibility\n| Angular version | Ngx observers version |\n|-----------------|-----------------------|\n| 12, 13          | 0.0.0 - 1.x.x         |\n| 14              | 2.x.x                 |\n| 15              | 3.x.x                 |\n\n## Instalation\n\n`npm install ngx-observers --save`\n\nthen add `NgxSimpleTextEditorModule` into module imports\n```typescript\nimport {NgxObserversModule} from \"ngx-observers\";\n\n@NgModule({\n// ...\n  imports: [\n    // ...\n    NgxObserversModule,\n    // ...\n  ],\n// ...\n})\n```\n\n## Usage\n\n- **[ResizeDirective](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/ResizeObserver)** - Allow observe resize event of given object\n```html\n\u003cdiv (obsResize)=\"resize($event)\" [obsOptions]=\"{box: 'content-box'}\" #elem=\"directive\"\u003e...\u003c/div\u003e\n```\n- **[MutationDirective](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/MutationObserver)** - Allow observe DOM tree changes\n```html\n\u003cdiv (obsMutation)=\"mutate($event)\" [obsOptions]=\"{subtree: false}\" #elem=\"directive\"\u003e...\u003c/div\u003e\n```\n- **[Intersection directive](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver)** - Allow observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport\n```html\n\u003cdiv (obsIntersection)=\"intersect($event)\" [obsOptions]=\"{threshold: 0.5}\" #elem=\"directive\"\u003e...\u003c/div\u003e\n```\n\nYou can access directive original observer object (e.g. `this.obsResize.observer`) using template variables (`#elem=\"directive\"`):\n```ts\n@ViewChild('elem') obsResize: ResizeDirective | undefined;\n@ViewChild('elem') obsMutation: MutationDirective | undefined;\n@ViewChild('elem') obsIntersection: IntersectionDirective | undefined;\n```\n\n# Documentation\nSee [online](https://ngx-observers.netlify.app/modules/ngxobserversmodule)\n\n# License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraiper34%2Fngx-observers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraiper34%2Fngx-observers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraiper34%2Fngx-observers/lists"}