{"id":13660737,"url":"https://github.com/topaxi/ng-wormhole","last_synced_at":"2026-03-06T18:39:44.450Z","repository":{"id":17068782,"uuid":"79562866","full_name":"topaxi/ng-wormhole","owner":"topaxi","description":"Render any child view somewhere else on the page.","archived":false,"fork":false,"pushed_at":"2022-12-08T17:32:40.000Z","size":1968,"stargazers_count":18,"open_issues_count":26,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T04:16:55.536Z","etag":null,"topics":["angular","angular2","elsewhere","portal","portals","render","wormhole"],"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/topaxi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-01-20T13:49:40.000Z","updated_at":"2023-06-15T12:56:25.000Z","dependencies_parsed_at":"2023-01-13T19:08:32.559Z","dependency_job_id":null,"html_url":"https://github.com/topaxi/ng-wormhole","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/topaxi/ng-wormhole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fng-wormhole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fng-wormhole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fng-wormhole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fng-wormhole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topaxi","download_url":"https://codeload.github.com/topaxi/ng-wormhole/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fng-wormhole/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267338501,"owners_count":24071361,"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-07-27T02:00:11.917Z","response_time":82,"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":["angular","angular2","elsewhere","portal","portals","render","wormhole"],"created_at":"2024-08-02T05:01:25.190Z","updated_at":"2026-03-06T18:39:44.413Z","avatar_url":"https://github.com/topaxi.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# NgWormhole\n\nThis component allows rendering all of its content to be rendered elsewhere on\nthe page.\n\n## Why?\n\nSometimes a dialog or tooltip has to be rendered outside of an element, as CSS\nstacking contexts may interfere with positioning.\n\n## Installation\n\n```bash\n$ yarn add ng-wormhole\n```\n\nImport `NgWormholeModule` in your app:\n\n```typescript\nimport { NgModule } from '@angular/core';\nimport { NgWormholeModule } from 'ng-wormhole';\n\n@NgModule({\n  imports: [NgWormholeModule]\n})\nexport class AppModule {}\n```\n\n### Example usage\n\nindex.html\n\n```html\n\u003cbody\u003e\n  \u003cmy-angular-app\u003e\u003c/my-angular-app\u003e\n  \u003cdiv id=\"wormhole-target\"\u003e\u003c/div\u003e\n\u003c/body\u003e\n```\n\nIn a component template:\n\n```html\n\u003cmy-popover *ngWormhole=\"'#wormhole-target'\"\u003e...\u003c/my-popover\u003e\n```\n\nThe `\u003cmy-popover\u003e` component will then be rendered in the `#wormhole-target`\nelement, it will also automatically cleaned up once your component will be\ndestroyed.\n\n### Inputs\n\n_ngWormhole: selector or element_\nWhich element to append to.\n\n```html\n\u003cdiv #targetElement id=\"my-target\"\u003e\u003c/div\u003e\n\u003cmy-popover *ngWormhole=\"targetElement\"\u003e...\u003c/my-popover\u003e\n\u003c!-- or by id/selector --\u003e\n\u003cmy-popover *ngWormhole=\"'#my-target'\"\u003e...\u003c/my-popover\u003e\n```\n\n_renderInPlace: boolean = false_\nShould the component render its children in place?\n\n```html\n\u003cmy-popover *ngWormhole=\"'#wormhole-target'; renderInPlace: true\"\u003e...\u003c/my-popover\u003e\n```\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n\n# Credits\n\nThis component is heavily inspired by\n[ember-wormhole](https://github.com/yapplabs/ember-wormhole).\nContributions from @stefanpenner, @krisselden, @chrislopresto, @lukemelia,\n@raycohen and others.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopaxi%2Fng-wormhole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopaxi%2Fng-wormhole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopaxi%2Fng-wormhole/lists"}