10 examples of 'angular change event' in JavaScript

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.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
11function 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}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

28function _change(event) {
29 for ( var i in _callbacks ) {
30 _callbacks[i].call(_doc, event, _doc[hidden]);
31 }
32}
88onChange(event) {
89 // model -> view
90 this.container.innerHTML = this.content;
91}
46private _change(ev: any) {
47 this.valueChange.emit(ev.target.value);
48 console.log(ev.target.value);
49}
118private 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}
191private 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}
177fireChangeEvent(event) {
178 if (this.props[event]) {
179 this.props[event](this.getCurrentValue());
180 }
181}
68triggerChange(changedValue) {
69 // Should provide an event to pass value to Form.
70 this.$emit("change", changedValue);
71}

Related snippets