{"id":18369643,"url":"https://github.com/forms-angular/fng-select2","last_synced_at":"2025-07-15T01:10:17.623Z","repository":{"id":17957259,"uuid":"20944249","full_name":"forms-angular/fng-select2","owner":"forms-angular","description":"select2 plugin for forms-angular","archived":false,"fork":false,"pushed_at":"2022-01-04T16:42:04.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-10T20:27:13.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/forms-angular.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-18T00:46:08.000Z","updated_at":"2015-03-13T21:39:53.000Z","dependencies_parsed_at":"2022-07-26T20:02:01.726Z","dependency_job_id":null,"html_url":"https://github.com/forms-angular/fng-select2","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/forms-angular/fng-select2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forms-angular%2Ffng-select2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forms-angular%2Ffng-select2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forms-angular%2Ffng-select2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forms-angular%2Ffng-select2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forms-angular","download_url":"https://codeload.github.com/forms-angular/fng-select2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forms-angular%2Ffng-select2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261108144,"owners_count":23110739,"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-11-05T23:30:18.406Z","updated_at":"2025-07-15T01:10:17.600Z","avatar_url":"https://github.com/forms-angular.png","language":"CSS","readme":"# fng-select2\n\n_*Deprecated in favour of fng-ui-select*_\n\nPlugin for forms-angular that adds select2 support.\n\n## Usage\n\n    bower install fng-select2\n    \nAdd the following lines to your index.html (or equivalent) file\n\n    \u003clink rel=\"stylesheet\" href=\"/bower_components/select2/select2.css\"\u003e\n    \u003cscript src=\"/bower_components/jquery/jquery.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"/bower_components/angular-ui-select2/src/select2.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"/bower_components/select2/select2.js\"\u003e\u003c/script\u003e\n    \nIn your Mongoose schemas you can set up fields like this:\n       \n    colour: {type: String, enum: ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet'], form:{select2:true}}\n    lookup: { type: Schema.Types.ObjectId, ref: 'anotherModel', form: {select2: {}}},\n    \nIn this case forms-angular will look up all the values in the anotherModel collection when the form is loaded.  In the\ncase where the collection is large you should use the fngAjax option \n\n    lookup2: { type: Schema.Types.ObjectId, ref: 'largeModel', form: {select2: {fngAjax:true}}} \n    \nwhich instructs the program to use ajax calls to query the server rather than downloading the table.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforms-angular%2Ffng-select2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforms-angular%2Ffng-select2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforms-angular%2Ffng-select2/lists"}