The live demo
example code (HTML + AngularJs) as given below
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>
<script>
var parentApp = angular.module("myApp", []);
parentApp.controller("MyController",
function ($scope) {
var
userDetail = {
ID: 1,
Name: 'Anil Singh',
Age: 30
};
$scope.getUsers = function () {
return userDetail;
}
});
</script>
</head>
<body ng-app="myApp">
<h2>User Details</h2>
<div ng-controller="MyController">
<div>ID : {{user.ID}}</div>
<div>Name : {{user.Name}}</div>
<div>Age : {{user.Age}}</div>
</div>
</div>
</body>