Lets say I have the following:
I want $scope.bookname's initial value to be 123. And if bookname is updated elsewhere, I'd like the value in the input to change (i.e. the model binding).
123 is set dynamically (from rails), so I cannot set it in javascript earlier (i.e. $scope.bookname = 123; will not work).
Any ideas how to accomplish this?