I was wondering how I can call a function in my controller depending on the option selected in the menu.
For example, using ng-click when a is clicked, I can call the function. I want to do something similar when choosing in AngularJS.
<select class="dropdown">
<option value="">Menu</option>
<option ng-click="open()">Settings</option>
</select>
Any ideas?
source
share