{"id":16068014,"url":"https://github.com/danielkucal/angular-esc","last_synced_at":"2025-06-22T09:34:05.631Z","repository":{"id":57178409,"uuid":"128924032","full_name":"DanielKucal/angular-esc","owner":"DanielKucal","description":"Angular 4+ Directive adding event for escape key","archived":false,"fork":false,"pushed_at":"2018-04-10T13:33:36.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T05:26:08.963Z","etag":null,"topics":["angular","angular-esc","directive","escape-key","ngx"],"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/DanielKucal.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":"2018-04-10T11:45:44.000Z","updated_at":"2021-11-02T02:28:12.000Z","dependencies_parsed_at":"2022-09-09T17:11:37.249Z","dependency_job_id":null,"html_url":"https://github.com/DanielKucal/angular-esc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DanielKucal/angular-esc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielKucal%2Fangular-esc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielKucal%2Fangular-esc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielKucal%2Fangular-esc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielKucal%2Fangular-esc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielKucal","download_url":"https://codeload.github.com/DanielKucal/angular-esc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielKucal%2Fangular-esc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261270933,"owners_count":23133661,"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","angular-esc","directive","escape-key","ngx"],"created_at":"2024-10-09T06:07:53.040Z","updated_at":"2025-06-22T09:34:00.387Z","avatar_url":"https://github.com/DanielKucal.png","language":"TypeScript","readme":"# angular-esc\nAngular 4+ Directive adding `(esc)` event for escape key press.\n\n## Installation\n1. Get it from npmjs (for npm \u003cv5 add `--save` flag):\n```\nnpm i angular-esc\n```\n2. Import `EscModule` into your application:\n```typescript\nimport { EscModule } from 'angular-esc';\n\n@NgModule({\n  declarations: [AppComponent],\n  imports: [BrowserModule, EscModule],\n  bootstrap: [AppComponent]\n})\nclass AppModule {}\n```\n\n## Usage\n```typescript\n@Component({\n  selector: 'app',\n  template: `\n    \u003cdiv *ngIf=\"isVisible\" (esc)=\"isVisible = false\"\u003eI will hide after Escape is pressed\u003c/div\u003e\n  `\n})\nexport class AppComponent {\n  public isVisible: boolean = true;\n}\n```\n\n\n### Options\n\n| Property name | Type | Default | Description |\n| ------------- | ---- | ------- | ----------- |\n| `watchEsc` | boolean | `true` | `false` value will disable the watcher |\n| `stopEscPropagation` | boolean | `true` | By default the event is not propagated further, you can change it here. |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkucal%2Fangular-esc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielkucal%2Fangular-esc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkucal%2Fangular-esc/lists"}