I\'ve been following a tutorial, the textbook assures me that this works, but it\'s bombing with
Error: [ng:areq] Argument \'SimpleController\' is not
You need to create an app and register it to that app like so:
var myApp = angular.module('myApp',[]);
myApp.controller('SimpleController', ['$scope', function($scope) {
$scope.customers = [
{name: 'John Smith', city: 'Phoenix'},
{name: 'Jane Smith', city: 'Pittsburgh'},
{name: 'John Doe', city: 'New York'},
{name: 'Jane Doe', city: 'Los Angeles'}
];
}]);
and in your html:
Full example in a plunker: http://plnkr.co/edit/tBwjJU3tc6tVc599RVFR?p=preview