Wednesday, July 20, 2016

objects in Angular JS

Objects in angular js

Example:
<html >
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>

</head>
<body>



<div ng-app="" ng-init="emp={id:'1',name:'peak'}">

<p>The Emp Id is {{ emp.id }}</p>


</div>
</body>
</html>

No comments:

Post a Comment