Answer the question
In order to leave comments, you need to log in
How to pass a function to Select option?
Hello everyone, such a problem. There is a select list with values.
<select class="form-control" id="roleFilter" name="role.id"
ng-options="role.name for role in vm.roleSelectOptions"
ng-model="vm.selectedRole"
ng-change="vm.onRoleChange(vm.selectedRole)"></select>
function defaultRole() {
vm.filter.roleFilter = null;
vm.filter.useRoleFilter = false;
search(true);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question