10 examples of 'angular 2 checkbox checked event' in JavaScript

Every line of 'angular 2 checkbox checked event' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
13onCheckbox1Change(value) {
14 console.log('checkbox1 checked:', value);
15}
82onCheckboxChange(event: any) {
83 event.stopPropagation();
84 this.change.emit(this.changeEvent);
85}
114onCheckboxChange(event: any) {
115 event.stopPropagation();
116 timer(0).subscribe(() => this.change.emit(this.changeEvent));
117}
67change(event) {
68 this.checked = event.checked;
69 this._ngModelOnChange(event.checked);
70 this.onChange.emit(event);
71}
65set checked(value: boolean) {
66 value = !!value;
67 if (this._checked !== value) {
68 this._checked = value;
69 if (this._checked && this.radioGroup && this.radioGroup.value !== this.value) {
70 this.radioGroup.value = this.value;
71 }
72 this.onChangeCallback(this._value);
73 }
74}
185private checkboxChange(item: any): void {
186 this.onCheckboxChange.emit({
187 item: item
188 } as ListEvent);
189}
55onAllChecked() {
56 this.data.forEach(item => (item.checked = this.allChecked));
57 this.notifySet();
58}
73ngDoCheck() {
74 this.getItems();
75}
33set checked(newCheckedState: boolean) {
34
35 if (this._checked !== newCheckedState) {
36 this._checked = newCheckedState;
37 }
38
39 if (newCheckedState && this.radioGroup && this.radioGroup.value !== this.value) {
40 this.radioGroup.selected = this;
41 } else if (!newCheckedState && this.radioGroup && this.radioGroup.value === this.value) {
42 this.radioGroup.selected = null;
43 }
44
45 if (newCheckedState) {
46 this._radioDispatcher.notify(this.id, this.name);
47 }
48}
116selectedCheckBox(event:any,rowno: number,data:any){
117 if(event.currentTarget.checked){
118 this.selectedData.push(data);
119 }
120 else{
121 var indexOf = this.selectedData.indexOf(data);
122 delete this.selectedData[indexOf];
123 }
124
125 const sdata = []
126
127 for(var i=0;i

Related snippets