Onchange function in Ionic 2


#1

Hi, everyone i want to do onchange function but in typescript same next sample:

$( “#id” ).change(function() {
alert( “Handler for .change() called.” );
});

no (onchange)=“function()” in input.

actually i’m get input value : let myinput = this.elementRef.nativeElement.querySelectorAll(’#a’)[0].value;

it’s possible? regards,


#2

None of what you have written has any place in an Angular application. Read the Angular docs, and somewhere in there you will see how to idiomatically achieve your real goal.


#3

but, need get values from inputs onchange event from Typescript file . if its no possible is incomplete framework. xD