In the tutorial on Medium, you never add ng-app="app" to the html tag. Thus, the AngularJS controllers never run.