{"id":13535453,"url":"https://github.com/AvraamMavridis/angular2-clickoutside-directive","last_synced_at":"2025-04-02T01:30:54.053Z","repository":{"id":57179506,"uuid":"69735628","full_name":"AvraamMavridis/angular2-clickoutside-directive","owner":"AvraamMavridis","description":"Angular 2 directive that provides Click Outside Functionality","archived":false,"fork":false,"pushed_at":"2018-08-06T14:27:07.000Z","size":29,"stargazers_count":6,"open_issues_count":64,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T06:02:08.430Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AvraamMavridis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-01T11:43:43.000Z","updated_at":"2018-02-28T09:26:16.000Z","dependencies_parsed_at":"2022-09-14T02:10:34.896Z","dependency_job_id":null,"html_url":"https://github.com/AvraamMavridis/angular2-clickoutside-directive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvraamMavridis%2Fangular2-clickoutside-directive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvraamMavridis%2Fangular2-clickoutside-directive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvraamMavridis%2Fangular2-clickoutside-directive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvraamMavridis%2Fangular2-clickoutside-directive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AvraamMavridis","download_url":"https://codeload.github.com/AvraamMavridis/angular2-clickoutside-directive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246738462,"owners_count":20825783,"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":[],"created_at":"2024-08-01T08:00:56.687Z","updated_at":"2025-04-02T01:30:53.805Z","avatar_url":"https://github.com/AvraamMavridis.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# angular2-clickoutside-directive\nAngular 2 directive that provides Click Outside Functionality\n\n[![npm version](https://badge.fury.io/js/angular2-clickoutside-directive.svg)](https://badge.fury.io/js/angular2-clickoutside-directive)\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com)\n\n## Install\n\n`npm i angular2-clickoutside-directive --save`\n\n### Import the directive to your project and use it in your Component defining an event handler\n\n```typescript\nimport { ClickOutsideDirective } from 'angular2-clickoutside-directive';\n\n@Component({\n  selector: 'my-app',\n  template : `\n  \u003cbutton clickOutside (onClickOutside)=\"onClickOutside($event)\"\u003e\n    A button\n  \u003c/button\u003e`,\n  directives : [  ClickOutsideDirective ]\n} )\nclass MyFirstComponent implements OnInit {\n  constructor(){}\n\n  onClickOutside($event)\n  {\n    console.log('Clicked outside')\n  }\n\n  ngOnInit(){}\n}\n```\n### Contribute\n\nAny pull-request is more than welcome :boom: :smile:\n\nThis project adheres to the Contributor Covenant [code of conduct](http://contributor-covenant.org/). By participating, you are expected to uphold this code.\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAvraamMavridis%2Fangular2-clickoutside-directive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAvraamMavridis%2Fangular2-clickoutside-directive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAvraamMavridis%2Fangular2-clickoutside-directive/lists"}