I
I
Isherath2018-06-29 02:00:07
Angular
Isherath, 2018-06-29 02:00:07

What is the jQuery equivalent of .change() in AngularJS for the select tag?

I need to redirect the user to another page after selecting an option in a select.
How this can be done, I can not understand.
For example, in jquery this is easy to do:

$('select').change(function() {
location.href = '/page/' + $(this).val();
});

How to make a similar functionality without reloading the page, Well, so that everything is in angular.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Luzanov, 2018-07-02
@dmitry_luzanov

ng-change

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question