tracking down issues
by NickJosevski
HTML
<div ng-app="todoApp">
<div ng-controller="TodoListController">
<input type="number" step="0.01" ng-model="vm.customImageHeightCm" placeholder="{{vm.heightPlaceHolder()}}" ng-blur="vm.keepDimensionsInSync(true);" />
</div>
</div>
CSS
</style> <!-- Ugly Hack due to jsFiddle issue: http: //goo.gl/BUfGZ -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.0.4/css/bootstrap-combined.min.css"> <script src="https://code.angularjs.org/1.1.5/angular.min.js"></script> <style> .done-true {
text-decoration: line-through;
color: grey;
}
JavaScript
angular.module('todoApp', [])
.controller('TodoListController', function($scope) {
$scope.vm = this;
var self = this;
this.customImageHeightCm = null;
this.heightPlaceHolder = null;
this.keepDimensionsInSync = function(val){
console.log('here',self.customImageHeightCm)
}
});