Check out this code snippet featuring ng-model and how to update it from the controller
Take a look at the DOM element below.
<div ng-app>
<div ng-controller="AppCtrl">
<input type="text" ng-model="guages" value="{{guages}}"/>
</div>
</div>
I'm having an issue with my controller, can you spot what's wrong?
function AppCtrl($scope){
console.log($scope.guages);
$scope.gauges=5;
}