{"id":31888858,"url":"https://github.com/modulr/mdr-angular-select2","last_synced_at":"2025-10-13T06:22:07.617Z","repository":{"id":58241520,"uuid":"47730976","full_name":"modulr/mdr-angular-select2","owner":"modulr","description":"Select2 for Angular","archived":false,"fork":false,"pushed_at":"2018-10-01T14:58:42.000Z","size":20,"stargazers_count":8,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-11T03:40:03.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/modulr.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":"2015-12-10T01:54:15.000Z","updated_at":"2021-06-17T07:48:25.000Z","dependencies_parsed_at":"2022-08-31T00:40:49.482Z","dependency_job_id":null,"html_url":"https://github.com/modulr/mdr-angular-select2","commit_stats":null,"previous_names":["modulr/angular-select2"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/modulr/mdr-angular-select2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-select2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-select2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-select2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-select2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modulr","download_url":"https://codeload.github.com/modulr/mdr-angular-select2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-select2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013958,"owners_count":26085429,"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-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2025-10-13T06:22:06.765Z","updated_at":"2025-10-13T06:22:07.610Z","avatar_url":"https://github.com/modulr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Select2\nAngular Select2 is an Angularjs component that can replacement for select boxes.\n\n\n![](http://modulr.io/img/preview/mdr-angular-select2.png)\n\n## Features\n\n- Uses the native Angularjs scope for data binding\n- Fast and lightweight\n- Remote and local data support\n- Big data support\n\n\n## Requirements\n\n- [Angularjs](https://angularjs.org/)\n- [Bootstrap 3.](http://getbootstrap.com/)\n- [Selec2.](https://select2.github.io/)\n\n## Quick start\n\nSeveral quick start options are available:\n\n- [Download the latest release](https://github.com/Modulr/mdr-angular-select2/archive/master.zip)\n- Clone the repo: `git clone https://github.com/Modulr/mdr-angular-select2.git`.\n- Install with [Bower](http://bower.io/): `bower install mdr-angular-select2`.\n- Install with [npm](https://www.npmjs.com): `npm install mdr-angular-select2`.\n\n## What's included\n\n```\nmdr-angular-select2/\n  dist/\n    ├── mdr-select2.js\n    └── mdr-select2.min.js\n```\n\n## Documentation\n\n### Usage\n\n##### Load JS\n\n```html\n\u003cscript href=\"mdr-angular-select2/dist/mdr-select2.min.js\"\u003e\u003c/script\u003e\n```\n\n##### Code\n\n```js\nangular.module('MyApp', ['mdr.select2'])\n```\n\n##### HTML View or Templates\n\n\u003e Basic Directive\n\n```html\n\u003cmdr-select2 url=\"http://miserver.com/json\" options=\"item.estate for item in collection track by item.id\"\u003e\u003c/mdr-select2\u003e\n```\n\n\u003e Complete Directive (All attributes)\n\n```html\n\u003cmdr-select2 src=\"collection\" options=\"item.estate group by item.zone for item in collection | orderBy:'item' track by item.id\" model=\"model\" selected=\"value\" placeholder=\"Seleccionar\" allow-clear=\"true\" disabled=\"true\" required=\"true\"\u003e\u003c/mdr-select2\u003e\n```\n\n### API\n\n##### Attributes\n\nAttribute | Type | Description\n--- | --- | ---\nurl | `string` | *Is the path where you get list of items.*\nsrc | `array` | *Collection of objects.*\noptions | `string` | *Dynamically generate a list of \u003coption\u003e elements.*\nmodel | `object` | *Get model selected (Output).*\nselected | `object` | *Set select value by track (Input).*\nallow-clear | `boolean` | *If required clear selection the component is marked as true.*\nplaceholder | `string` | *Text into placeholder.*\ndisabled | `boolean` | *If required disable the component is marked as true.*\nrequired | `boolean` | *If is required the component is marked as true.*\n\n## How to contribute\n\nAll contributions are very welcome, We love it. There are several ways to help out:\n\n- Create an [issue](https://github.com/Modulr/mdr-angular-select2/issues) on GitHub, if you have found a bug\n- Write test cases for open bug issues\n- Write patches for open bug/feature issues, preferably with test cases included\n- Contribute to the documentation\n\nThere are a few guidelines that we need contributors to follow so that we have a chance of keeping on top of things.\n\nIf you want to making changes Better avoid working directly on the `master` branch, to avoid conflicts if you pull in updates from origin, so, if make your contribution under the branch [`dev`](https://github.com/Modulr/mdr-angular-select2/tree/dev), into folder `src/`.\n\n## Community\n\n- Implementation help may be found at Stack Overflow (tagged [`mdr-select2`](http://stackoverflow.com/questions/tagged/mdr-select2)).\n\n## Creators\n\n[@AlfredoBarronC](https://twitter.com/AlfredoBarronC)\n\n## Copyright and license\n\nCode and documentation (c) Copyright 2015 Modulr. Code published under [license MIT](https://github.com/Modulr/mdr-angular-select2/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodulr%2Fmdr-angular-select2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodulr%2Fmdr-angular-select2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodulr%2Fmdr-angular-select2/lists"}