I'm using django in the back-end. I need to submit a form with a language parameter and refresh the page to change the language in the front-end.
I've got a select tag which is nested inside a form.
<form>
...
<select name="language" ng-model="selectedLanguage" ng-options="language in languages" ng-change="changeLanguage()">
...
</form>
I'd like to submit the form on select change event, what's the best way to do it with angularjs?
The $event object is not available for the change event (angular 1.3.0).