I have this input field in my form
<input type="number" style="display:none" ng-model="frequency" id="frequencyDisplay">
</div>
The value of this input field is changed when I change a slider, given by this jquery
$(".dial").knob({
'min':1,
'max':180,
change: function(value){
$("#frequencyDisplay").val(Math.round(value));
console.log(value);
}
});
However, I can't access the ng-model frequency as it seems to be blank.
In my controller,
$scope.frequency
is a null value. It's got nothing attached to it. I've most definitely checked using the console that #frequencyDisplay has a value. Just ng-model is unable to access it. Any ideas how to?