$scope.callFunction = function() {
console.log($scope.modelData);
}
<md-select ng-model="modelData" ng-change="callFunction()">
<md-option ng-repeat="x in tempData" ng-value="x">{{x}}
</md-option>
</md-select>
I'm trying to use the md-select select boxes but the ng-model doesn't seem to work. Any idea where I'm going wrong?
The output in ng-change function comes as undefined.