
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
ng2-select2
Advanced tools
For Angular version 2.x.x and up
For this plugin to work you need to add two javascript libraries to your project
First option and preferred one is to add libraries to your package builder.
Second option is to include libraries into your html head:
<head>
<meta charset="utf-8">
<title>Ng2Select2Demo</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script src="./assets/jquery.min.js"></script>
<script src="./assets/select2.min.js"></script>
</head>
Add package to your project npm i -S ng2-select2 (this will save package to your dependencies in package.json)
import { Select2Module } from 'ng2-select2';
@NgModule({
imports: [
....,
Select2Module
],
...
})
data as @Input.Example of exampleData can be found here.
<select2 [data]="exampleData"></select2>
Array<Select2OptionData>: Data used for generating select 2 - inferface definitionstring: Default value for select 2boolean: Disable or enable default style for select 2, default value is falsestring: Set width for the input, default value is resolveboolean: Disable select2, default value is falseSelect2Options: Set options for select 2, all available options for select 2string: Emitted when value changes in select 2 drop downYou can view a live demo here or check out demo repo where you can find source of this demo created with Angular CLI.
FAQs
Angular2 wrapper for select2
The npm package ng2-select2 receives a total of 869 weekly downloads. As such, ng2-select2 popularity was classified as not popular.
We found that ng2-select2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.