We can connect to any Content Delivery Network ( CDN ) and link the Angular JS library.
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
We used two braces to execute Angular JS Expression
Example
<div ng-app="">
Sum of Two numbers : {{ 10 + 12 }}
</div>
Output is here.
Sum of Two numbers : 22
Example
<div ng-app="" ng-init="str1='Welcome to';str2='plus2net'">
Hi : {{str1 +' ' + str2}}
</div>
First Name:
Last Name:
Full Name: {{firstName + " " + lastName}}
← Basics of Angular Basics of Angular reading JSON →
←Angular Home