I'm beginner in angularJs and I have this simple and maybe stupid problem, can't connect simple controller to view:
<!DOCTYPE html>
<html ng-app>
<head>
<title></title>
</head>
<body>
<div ng-controller="SimpleController">
NAME:
<input type="text" name="name" ng-model="name" />
<br/>
<ul>
<li ng-repeat="cust in customers | filter:name | orderBy:'city'">{{cust.name | uppercase}} - {{cust.city}}</li>
</ul>
</div>
<script src="js/angular.min.js" type="text/javascript"></script>
<script>
function SimpleController($scope){
$scope.customers=[{name:'Amelie',city:'Tbilisi'},{name:'Jani', city:'New York'}];
}
</script>
</body>
</html>
So, can anyone explain what i'm doing wrong?