Module view controls-angular-js and filters-1

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>controlers</title>
<script src="angular.min.js"></script>
</head>
<body>

<div ng-app="myapp" ng-controller="myappcontrol">
<ul>
<li ng-repeat="x in details | orderBy:'-amount'">
{{x.name |lowercase}} {{x.country |uppercase}}{{x.amount |currency:"Rs"}}
</li>
</ul>
</div>

<script>

angular.module('myapp',[]).controller('myappcontrol',function($scope) {
$scope.details=[
{name:'jeevan',country:'india',amount:500},
{name:'john',country:'usa',amount:600},
{name:'bosco',country:'aus',amount:700},
{name:'moulali',country:'pks',amount:800},
{name:'amjath',country:'pks',amount:900},

];
});

</script>

</body>
</html>

Comments

Popular posts from this blog

Child Development and Pedagogy - MCQ-02

Child Development and Pedagogy - MCQ

Historical Evolution of Education in India and Acts and Rights in Indian Education