{"id":15573015,"url":"https://github.com/instance-oom/ngx-select2","last_synced_at":"2025-07-19T01:37:11.955Z","repository":{"id":22229225,"uuid":"95659967","full_name":"instance-oom/ngx-select2","owner":"instance-oom","description":"Select2 component for Angular","archived":false,"fork":false,"pushed_at":"2022-12-07T19:46:05.000Z","size":834,"stargazers_count":14,"open_issues_count":16,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T08:26:40.562Z","etag":null,"topics":["angular2","components","ngx","seletc2"],"latest_commit_sha":null,"homepage":"http://lon-yang.github.io/ngx-select2/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/instance-oom.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":"2017-06-28T11:03:51.000Z","updated_at":"2023-11-20T02:46:50.000Z","dependencies_parsed_at":"2023-01-13T21:54:45.913Z","dependency_job_id":null,"html_url":"https://github.com/instance-oom/ngx-select2","commit_stats":null,"previous_names":["lon-yang/ngx-select2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-oom%2Fngx-select2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-oom%2Fngx-select2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-oom%2Fngx-select2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-oom%2Fngx-select2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instance-oom","download_url":"https://codeload.github.com/instance-oom/ngx-select2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465315,"owners_count":21108244,"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":["angular2","components","ngx","seletc2"],"created_at":"2024-10-02T18:09:52.890Z","updated_at":"2025-04-17T21:31:27.689Z","avatar_url":"https://github.com/instance-oom.png","language":"TypeScript","readme":"# ngx-select2\nSelect2 component for Angular\n\n[![peerDependencies Status](https://david-dm.org/lon-yang/ngx-select2/peer-status.svg)](https://david-dm.org/lon-yang/ngx-select2?type=peer)\n[![npm version](https://badge.fury.io/js/ngx-select2.svg)](https://badge.fury.io/js/ngx-select2)\n[![licence](https://img.shields.io/npm/l/ngx-select2.svg)](https://opensource.org/licenses/Apache2.0)\n\n# Usage\n\n- Add `jQuery` and `Select2` lib\n\n```html\n\u003clink href=\"https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css\" rel=\"stylesheet\" /\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js\"\u003e\u003c/script\u003e\n```\n\n- Install `ngx-select2`\n\n```bash\nnpm i ngx-select2\n```\n\n- Use select2 component\n\n```ts\nimport { LSelect2Module } from 'ngx-select2';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    FormsModule,\n    LSelect2Module\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n```html\n\u003cl-select2 [(ngModel)]=\"selected\" [data]=\"data\" [options]=\"options\" [disabled]=\"false\" (valueChange)=\"valueChange($event)\"\u003e\u003c/l-select2\u003e\n```\n\n# Options\n\n- data: select2 init data for select\n- options: select2 options\n- disabled: disable select2 component\n- valueChange: `output`. Fire on value change, same as `ngModelChange`\n\n# ChangeLog\n\n- `0.2.0`: Add `valueChange`, Support `Angular 6`\n- `0.3.0`: Support `Angular 9`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstance-oom%2Fngx-select2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstance-oom%2Fngx-select2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstance-oom%2Fngx-select2/lists"}