
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
ng2-checkboxlist
Advanced tools
Angular 2 checkbox list component
npm install ng2-checkboxlist --save
import
//app.module.ts file
....
import { CheckBoxList } from 'ng2-checkboxlist/checkboxlist.js';
@NgModule({
declarations: [
AppComponent,
CheckBoxList
],
....
//app.component.ts file
export class AppComponent {
title = 'app';
listItemToPass:any[] = [
{id:1, text:"one"},
{id:2, text:"two"},
{id:3, text:"three"},
{id:4, text:"four"}
];
checkboxStyles:string[] = ["container:greenClass, shadow", "title:whiteClass"];
itemSelectedManager(event){
console.log("selected items list -> ", event);
}
}
insert selector
<!-- app.component.html file -->
<checkbox-list
[title]="'choose a number'"
[list]="listItemToPass"
[id] ="'id'"
[value] = "'text'"
[styles] = "checkboxStyles"
(listSelected) = "itemSelectedManager($event)"
></checkbox-list>
you can style by applying class to container, title, input and label passing a string or an array of string to [styles] input property. String format is: "<container|title|input|label>:, , ..., " Array format simply is an array of these strings. in code sample 'checkboxStyles' is so declared:
checkboxStyles:string[] = ["container:greenClass, shadow", "title:whiteClass"];
![Executing]https://github.com/LuigiSenzamici/ng2-checkboxlist/blob/master/docs/img/checkboxlist-scr.PNG ![data reading]https://github.com/LuigiSenzamici/ng2-checkboxlist/blob/master/docs/img/checkboxlist-result.PNG
Typescript
Stylus
This project is licensed under the MIT License
FAQs
Angular 2 checkbox list component with theming, no dependencys and customizable styles
The npm package ng2-checkboxlist receives a total of 5 weekly downloads. As such, ng2-checkboxlist popularity was classified as not popular.
We found that ng2-checkboxlist 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.