{"id":13808344,"url":"https://github.com/fidian/ngx-resize-observer","last_synced_at":"2025-08-21T02:31:24.435Z","repository":{"id":42062057,"uuid":"207836717","full_name":"fidian/ngx-resize-observer","owner":"fidian","description":"Angular 8+ module for detecting when elements are resized","archived":false,"fork":false,"pushed_at":"2025-06-18T17:34:28.000Z","size":1470,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T05:53:10.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fidian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-11T14:47:10.000Z","updated_at":"2025-07-24T14:36:04.000Z","dependencies_parsed_at":"2024-05-08T19:46:17.634Z","dependency_job_id":"63d94d86-d33f-40bb-96f3-b9b20517c524","html_url":"https://github.com/fidian/ngx-resize-observer","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/fidian/ngx-resize-observer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fngx-resize-observer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fngx-resize-observer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fngx-resize-observer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fngx-resize-observer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fidian","download_url":"https://codeload.github.com/fidian/ngx-resize-observer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fngx-resize-observer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271416819,"owners_count":24755962,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-04T01:01:40.596Z","updated_at":"2025-08-21T02:31:24.430Z","avatar_url":"https://github.com/fidian.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["DOM"],"readme":"# NgxResizeObserver\n\nAngular 20.x library to monitor changes to elements. Uses ResizeObserver to do the work.\n\nIf you would like to simply know when elements are visible, check out [ngx-visibility](https://github.com/fidian/ngx-visibility/).\n\nIf you want to be notified when DOM elements change properties, [ngx-mutation-observer](https://github.com/fidian/ngx-mutation-observer/) would be a good pick.\n\n\n## Demonstration\n\nThere's a [live demo](https://codesandbox.io/s/github/fidian/ngx-resize-observer-demo/tree/master/) over at CodeSandbox.io.\n\n\n## Installation\n\nInstall like other Angular libraries. First run a command to download the module.\n\n    npm install ngx-resize-observer\n\nNext, add the module to your project.\n\n    import { BrowserModule } from '@angular/platform-browser';\n    import { NgModule } from '@angular/core';\n    import { FormsModule } from '@angular/forms';\n\n    // Import the module\n    import { NgxResizeObserverModule } from 'ngx-resize-observer';\n\n    import { AppComponent } from './app.component';\n\n    @NgModule({\n        declarations: [AppComponent, ItemComponent],\n\n        // Include the module.\n        imports: [BrowserModule, FormsModule, NgxResizeObserverModule],\n        providers: [],\n        bootstrap: [AppComponent]\n    })\n    export class AppModule {}\n\nFinally, you leverage the service directly or use some directives for common uses.\n\n\n## NgxResizeObserverDirective\n\nEmits `ResizeObserverEntry` when a resize is detected for that element.\n\n    \u003cdiv (onResize)=\"handleResize($event)\"\u003e\u003c/div\u003e\n\nOnly one property is configurable, which is the box model. When not specified, it defaults to \"content-box\". To change this, use the `resizeBoxModel` directive. The only allowed values are \"content-box\" and \"border-box\".\n\n    \u003cdiv (onResize)=\"handleResize($event)\" resizeBoxModel=\"border-box\"\u003e\u003c/div\u003e\n\n\n## License\n\nThis project is licensed under an [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffidian%2Fngx-resize-observer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffidian%2Fngx-resize-observer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffidian%2Fngx-resize-observer/lists"}