Saturday, 10 September 2016

Angular JS assignment 3 : Declaring the Objects




Below way you can declare the Objects in Angular JS

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

<div ng-app="" ng-init="firstName='John';lastName='Doe'">

<p>The full name is: {{ firstName + " " + lastName }}</p>

</div>

</body>
</html>

No comments:

Post a Comment