I am trying to make an angular.js view update itself when adding a comment. My code is as follows:
Modify the code to wrap inside scope.$apply because you are modifying the property outside the angular scope you have to use scope.$apply() to watch the values