Answer the question
In order to leave comments, you need to log in
How to bind a function to a tag element in Angular?
There is this HTML code:
<select>
<option value="">Date</option>
<option value="">Name</option>
<option value="">Email</option>
</select>
$scope.sortBy = {
date: function () {
},
name: function () {
console.log($scope.dataFromMySQL);
},
email: function () {
}
};
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