{"id":13839290,"url":"https://github.com/leocaseiro/angular-chosen","last_synced_at":"2025-12-17T10:47:47.753Z","repository":{"id":7720714,"uuid":"9086522","full_name":"leocaseiro/angular-chosen","owner":"leocaseiro","description":"AngularJS Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a AngularJS way","archived":false,"fork":false,"pushed_at":"2023-02-28T02:51:28.000Z","size":1137,"stargazers_count":680,"open_issues_count":17,"forks_count":247,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-11-11T18:36:40.241Z","etag":null,"topics":["angular-chosen","angularjs","angularjs-directives","chosen","dropdown","multiple","select"],"latest_commit_sha":null,"homepage":"http://leocaseiro.github.io/angular-chosen/","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/leocaseiro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-03-28T21:13:31.000Z","updated_at":"2025-08-27T11:53:10.000Z","dependencies_parsed_at":"2025-11-13T02:02:25.849Z","dependency_job_id":null,"html_url":"https://github.com/leocaseiro/angular-chosen","commit_stats":{"total_commits":156,"total_committers":35,"mean_commits":4.457142857142857,"dds":0.641025641025641,"last_synced_commit":"5675f52e99164af9fc660b5d884c242cb12adfe9"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/leocaseiro/angular-chosen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocaseiro%2Fangular-chosen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocaseiro%2Fangular-chosen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocaseiro%2Fangular-chosen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocaseiro%2Fangular-chosen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leocaseiro","download_url":"https://codeload.github.com/leocaseiro/angular-chosen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocaseiro%2Fangular-chosen/sbom","scorecard":{"id":584531,"data":{"date":"2025-08-11","repo":{"name":"github.com/leocaseiro/angular-chosen","commit":"5675f52e99164af9fc660b5d884c242cb12adfe9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Code-Review","score":1,"reason":"Found 4/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"87 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-89mq-4x47-5v83","Warn: Project is vulnerable to: GHSA-5cp4-xmrw-59wf","Warn: Project is vulnerable to: GHSA-mhp6-pxh8-r675","Warn: Project is vulnerable to: GHSA-2qqx-w9hr-q5gx","Warn: Project is vulnerable to: GHSA-2vrf-hf26-jrp5","Warn: Project is vulnerable to: GHSA-4w4v-5hc9-xrr2","Warn: Project is vulnerable to: GHSA-j58c-ww9w-pwp5","Warn: Project is vulnerable to: GHSA-m2h2-264f-f486","Warn: Project is vulnerable to: GHSA-m9gf-397r-hwpg","Warn: Project is vulnerable to: GHSA-mqm9-c95h-x2p6","Warn: Project is vulnerable to: GHSA-prc3-vjfx-vhm9","Warn: Project is vulnerable to: GHSA-qwqh-hm9m-p5hr","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-6c3j-c64m-qhgq","Warn: Project is vulnerable to: GHSA-gxr4-xjj5-5px2","Warn: Project is vulnerable to: GHSA-jpcq-cgw6-v4j6","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-7x7c-qm48-pq9c","Warn: Project is vulnerable to: GHSA-rc3x-jf5g-xvc5","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-82v2-mx6x-wq7q","Warn: Project is vulnerable to: GHSA-f9cm-qmx5-m98h","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-q75g-2496-mxpp","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-mgfv-m47x-4wqp","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T20:05:52.949Z","repository_id":7720714,"created_at":"2025-08-20T20:05:52.950Z","updated_at":"2025-08-20T20:05:52.950Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27781933,"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-12-17T02:00:08.291Z","response_time":55,"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-chosen","angularjs","angularjs-directives","chosen","dropdown","multiple","select"],"created_at":"2024-08-04T17:00:17.944Z","updated_at":"2025-12-17T10:47:47.716Z","avatar_url":"https://github.com/leocaseiro.png","language":"JavaScript","readme":"Angular Chosen Localytics [![Bower](https://img.shields.io/bower/v/angular-chosen-localytics.svg)](https://github.com/leocaseiro/angular-chosen) [![npm](https://img.shields.io/npm/v/angular-chosen-localytics.svg)](https://www.npmjs.com/package/angular-chosen-localytics)\n==============\n\nAngularJS Chosen directive\n\nThis directive brings the [Chosen](http://harvesthq.github.com/chosen/) jQuery plugin\ninto AngularJS with ngModel and ngOptions integration.\n\nTo use, include `localytics.directives` as a dependency in your Angular module.  You can now\nuse the `chosen` directive as an attribute on any select element.  Angular version 1.3+ is required, but recommended 1.4.9+.\n\n# [Full Documentation with Examples](http://leocaseiro.github.io/angular-chosen/)\n* Documentation on [Github Page](http://leocaseiro.github.io/angular-chosen/)\n* Examples on [example/index.html](http://htmlpreview.github.io/?https://github.com/leocaseiro/angular-chosen/blob/master/example/index.html)\n\n\n\n## Installation (npm or bower)\n\nVia bower\n\n    $ bower install angular-chosen-localytics --save\n\nVia npm\n\n    $ npm install angular-chosen-localytics --save\n\n\nVia [cdn](https://cdnjs.com/libraries/angular-chosen-localytics)\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/angular-chosen-localytics/1.9.2/angular-chosen.min.js\"\u003e\u003c/script\u003e\n```\n\n\n\nOr download zip file\n\u003e [Download v1.9.2](https://github.com/leocaseiro/angular-chosen/archive/1.9.2.zip)\n\n\n\n\n## Yeoman or Bower install\nIf you use Yeoman or Bower install, you need to rename the `chosen.jquery.js` or the `chosen.proto.js` to `chosen.js`. Otherwise Chosen won't be included in your `index.html`.\n\n# Features\n  * Works with `ngModel` and `ngOptions`\n  * Supports usage of promises in `ngOptions`\n  * Provides a 'loading' animation when 'ngOptions' collection is a promise backed by a remote source\n  * Pass options to `Chosen` via attributes or by passing an object to the Chosen directive\n  * Provider with default values with `chosenProvider` ([read: Added config-provider](https://github.com/leocaseiro/angular-chosen/pull/231)) [since 1.6.0]\n\n# Usage\n\n### Simple example\nSimilar to `$(\"#states\").chosen()`\n\n```html\n\u003cselect chosen multiple id=\"states\"\u003e\n  \u003coption value=\"AK\"\u003eAlaska\u003c/option\u003e\n  \u003coption value=\"AZ\"\u003eArizona\u003c/option\u003e\n  \u003coption value=\"AR\"\u003eArkansas\u003c/option\u003e\n  \u003coption value=\"CA\"\u003eCalifornia\u003c/option\u003e\n\u003c/select\u003e\n```\n\n### Pass any chosen options as attributes\n\n```html\n\u003cselect chosen\n        data-placeholder-text-single=\"'Pick one of these'\"\n        disable-search=\"true\"\n        allow-single-deselect=\"true\"\u003e\n  \u003coption value=\"\"\u003e\u003c/option\u003e\n  \u003coption\u003eThis is fun\u003c/option\u003e\n  \u003coption\u003eI like Chosen so much\u003c/option\u003e\n  \u003coption\u003eI also like bunny rabbits\u003c/option\u003e\n\u003c/select\u003e\n```\n\u003e Note: the empty option element is mandatory when using `allow-single-deselect`\n\n### Integration with `ngModel` and `ngOptions`\n\n```html\n\u003cselect multiple\n        chosen\n        ng-model=\"state\"\n        ng-options=\"s for s in states\"\u003e\n\u003c/select\u003e\n```\n\n\u003e Note: don't try to use `ngModel` with `ngRepeat`.  It won't work.  Use `ngOptions`.  It's better that way.\n\n\u003e Also important: if your `ngModel` is null or undefined, you must manually include an empty option inside your `\u003cselect\u003e`, otherwise you'll encounter strange off-by-one errors:\n\n```html\n\u003cselect multiple\n        chosen\n        ng-model=\"state\"\n        ng-options=\"s for s in states\"\u003e\n  \u003coption value=\"\"\u003e\u003c/option\u003e\n\u003c/select\u003e\n```\n\n\u003e This annoying behavior is alluded to in the examples in the [documentation for ngOptions](http://docs.angularjs.org/api/ng.directive:select).\n\n#### Works well with other AngularJS directives\n\n```html\n\u003cselect chosen\n        ng-model=\"state\"\n        ng-options=\"s for s in states\"\n        ng-disabled=\"editable\"\u003e\n  \u003coption value=\"\"\u003e\u003c/option\u003e\n\u003c/select\u003e\n```\n\n### Loading from a remote data source\nInclude `chosen-spinner.css` and `spinner.gif` to show an Ajax spinner icon while your data is loading.  If the collection comes back empty, the directive will disable the element and show a default\n\"No values available\" message.  You can customize this message by passing in `noResultsText` in your options.\n\n##### app.js\n```js\nangular.module('App', ['ngResource', 'localytics.directives'])\n    .controller('BeerCtrl', function($scope, $resource) {\n      $scope.beers = $resource('api/beers').query()\n    });\n```\n\n##### index.html\n```html\n\u003cdiv ng-controller=\"BeerCtrl\"\u003e\n  \u003cselect chosen\n          data-placeholder-text-single=\"'Choose a beer'\"\n          no-results-text=\"'Could not find any beers :('\"\n          ng-model=\"beer\"\n          ng-options=\"b for b in beers\"\u003e\n      \u003coption value=\"\"\u003e\u003c/option\u003e\n  \u003c/select\u003e\n\u003c/div\u003e\n```\n\nImage of select defined above in loading state:\n`\u003cimg src=\"https://raw.github.com/localytics/angular-chosen/master/example/choose-a-beer.png\"\u003e`\n\n\u003e Note: Assigning promises directly to scope is now deprecated in Angular 1.2+.  Assign the results of the promise to scope\nonce the promise returns.  The loader animation will still work as long as the collection expression\nevaluates to `undefined` while your data is loading!\n\n\n### Default values with chosenProvider (thanks @zlodes) [since 1.6.0]\n```javascript\nangular.module('chosenExampleApp', ['localytics.directives'])\n    .config(['chosenProvider', function (chosenProvider) {\n        chosenProvider.setOption({\n            no_results_text: 'There is no results!',\n            placeholder_text_multiple: 'Choose one or more!'\n        });\n    }]);\n```\n","funding_links":[],"categories":["Uncategorized","JavaScript"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleocaseiro%2Fangular-chosen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleocaseiro%2Fangular-chosen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleocaseiro%2Fangular-chosen/lists"}