stsc3000's blog

A Tale of Frankenstein and Binding to Service Values in Angular.js

While learning AngularJS I have often banged my head against the wall when being faced with values defined on my controller scopes that just won’t change along with the things they are representing. This post is about a common error that beginners are prone to make in such a situation, a small dive into the angular $digest loop, a short explanation of assignment of values in javascript and, finally, a way to confidently have values updated in your controllers.