I am new to AngularJS and stuck with an output.
Here is the code snippet:
<html ng-app>
<body>
<div class="container" data-ng-controller="simpleController">
<ul>
<li ng-repeat="cust in customers | orderBy:'name'">
{{ cust.name | uppercase }} - {{ cust.city | lowercase }} - {{ cust.balc | currency }}
</li>
</ul>
</div>
<script>
angular.module("app",[]).controller("simpleController",function($scope){
$scope.customers = [
{ name: 'Dave', city: 'Jaipur', balc: '500'},
{ name: 'Shruti', city: 'Toronto', balc: '1000'},
{ name: 'Rishu', city: 'Phoenix', balc: '2000'},
{ name: 'Shweta', city: 'California',balc:'3000'}
];
}
</script>
</body>
</html>
Can someone tell me what is wrong with my code. I have put single quotes before div tag and li tag because it wasnt displaying on stackoverflow otherwise.