I am learning AngularJS and stuck with a problem from sometime. I am trying to display a list of Name/City saved inside a controller but it is not being displayed in my browser. Earlier, I was doing it directly (without controller using data-ng-init) and it was visible. Can anybody help?
<html data-ng-app="">
<head>
<title> Using AngularJS and etc</title>
</head>
<body data-ng-controller="SimpleController">
Name:
<br/>
<input type="text" data-ng-model="name" />
<br/>
<ul>
<li data-ng-repeat="cust in customers"> {{ cust.name }} - {{ cust.city | uppercase }}</li>
</ul>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script>
function SimpleController($scope) {
$scope.customers = [
{name: 'Dave', city: 'London'},
{name: 'Naww', city: 'Tokyo'},
{name: 'Jim Do', city: 'ABX'},
{name: 'Ben', city: 'Oslo'}
];
}
</script>
</body>
</html>