{"id":22104835,"url":"https://github.com/nemeslaszlo/angular-resize-event","last_synced_at":"2025-07-25T02:31:43.567Z","repository":{"id":228445925,"uuid":"774001617","full_name":"NemesLaszlo/angular-resize-event","owner":"NemesLaszlo","description":"Angular directive for detecting changes of an element size.","archived":false,"fork":false,"pushed_at":"2024-08-11T18:52:03.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-18T11:04:08.108Z","etag":null,"topics":["angular","resize","resizer"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/angular-resize-event-package","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/NemesLaszlo.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-18T19:14:32.000Z","updated_at":"2024-08-24T01:09:19.000Z","dependencies_parsed_at":"2024-03-18T21:53:20.053Z","dependency_job_id":null,"html_url":"https://github.com/NemesLaszlo/angular-resize-event","commit_stats":null,"previous_names":["nemeslaszlo/angular-resize-event"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NemesLaszlo%2Fangular-resize-event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NemesLaszlo%2Fangular-resize-event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NemesLaszlo%2Fangular-resize-event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NemesLaszlo%2Fangular-resize-event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NemesLaszlo","download_url":"https://codeload.github.com/NemesLaszlo/angular-resize-event/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227501747,"owners_count":17781474,"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","resize","resizer"],"created_at":"2024-12-01T06:35:26.357Z","updated_at":"2025-07-25T02:31:43.557Z","avatar_url":"https://github.com/NemesLaszlo.png","language":"TypeScript","readme":"# Angular Resize Event\n\nAngular directive for detecting changes of an element size.\n\n## Important\n\nForked from: https://github.com/vdolek/angular-resize-event. The last original version is not supported by angular 16, 17, 18, 19, 20 and so on. \n\nThanks to: https://github.com/vdolek, https://github.com/dereekb, and all contributors.\n\nIt is as simple as:\n\n```html\n\u003cdiv (resized)=\"onResized($event)\"\u003e\u003c/div\u003e\n```\n\nIt internally uses browser native [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver). Therefore it is not supported in IE.\n\n## Using the library\n\nImport the library in any Angular application by running:\n\n```bash\n$ npm install angular-resize-event-package\n```\n\nand then from your Angular `AppModule`:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { AppComponent } from './app.component';\n\n// Import the library module\nimport { AngularResizeEventModule } from 'angular-resize-event-package';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n\n    // Specify AngularResizeEventModule library as an import\n    AngularResizeEventModule\n  ],\n  providers: [],\n  bootstrap: [ AppComponent ]\n})\nexport class AppModule { }\n```\n\nOnce your library is imported, you can use its `resized` directive in your Angular application:\n\n```html\n\u003cdiv (resized)=\"onResized($event)\"\u003e\u003c/div\u003e\n```\n\n```typescript\nimport { Component } from '@angular/core';\n\n// Import the resized event model\nimport { ResizedEvent } from 'angular-resize-event-package';\n\n@Component({...})\nclass MyComponent {\n  width: number;\n  height: number;\n\n  onResized(event: ResizedEvent) {\n    this.width = event.newRect.width;\n    this.height = event.newRect.height;\n  }\n}\n```\n## License\n\nMIT © [Laszlo Nemes](mailto:wow.laszlo@gmail.com)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemeslaszlo%2Fangular-resize-event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnemeslaszlo%2Fangular-resize-event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemeslaszlo%2Fangular-resize-event/lists"}