Every line of 'angular change 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.
11 function change($$event) { 12 var inputVal = $$event.target.value; 13 switch (inputVal) { 14 case "" : 15 return /* Change */[""]; 16 case "-" : 17 return /* Change */["-"]; 18 default: 19 var match = (/^-?(0|[1-9][0-9]*)(\.[0-9]{0,6})?$/).test(inputVal); 20 if (match) { 21 return /* Change */[inputVal]; 22 } else { 23 return /* Change */[undefined]; 24 } 25 } 26 }
28 function _change(event) { 29 for ( var i in _callbacks ) { 30 _callbacks[i].call(_doc, event, _doc[hidden]); 31 } 32 }
88 onChange(event) { 89 // model -> view 90 this.container.innerHTML = this.content; 91 }
46 private _change(ev: any) { 47 this.valueChange.emit(ev.target.value); 48 console.log(ev.target.value); 49 }
118 private handleChange( event: any ): void { 119 let handleValue = this.calculateHandleValue(event); 120 this.setValueFromHandle(event, handleValue); 121 return; 122 }
21 "change": function change(e) { 22 return _this.$emit('input', e.target.checked); 23 }
105 @HostListener('onmousewheel', ['$event', 'true']) onMouseWheelIE(event: any) { 106 this.mouseWheelFunction(event); 107 }
191 private notifyModelChanged(selectedValue: any) { 192 if (!selectedValue) { 193 this.propagateChange(null); 194 } else if (this.bindValue) { 195 this.propagateChange(selectedValue[this.bindValue]); 196 } else { 197 this.propagateChange(selectedValue); 198 } 199 }
177 fireChangeEvent(event) { 178 if (this.props[event]) { 179 this.props[event](this.getCurrentValue()); 180 } 181 }
68 triggerChange(changedValue) { 69 // Should provide an event to pass value to Form. 70 this.$emit("change", changedValue); 71 }