Attempting to learn angularjs just because but not getting the basics. Why doesn't this work? 'hello' is bound and will display "working" if uncommented.
angular.module('myApp', [])
.service('formService', function () {
this.names = ['John', 'James', 'Jake'];
}).controller('FormCtrl', ['$scope', function ($scope, formService) {
$scope.hello = formService.names[1];//"working";
}]);
[html fragment]
<div ng-app="myApp" ng-controller="FormCtrl">
{{hello}}
</div>