Wednesday, August 15, 2018

Build "Hello World Application" with Angular 1+

Build "Hello World Application" with Angular 1+


Prerequisite:
Download AngularJS javascript file from Angular officail website https://angularjs.org/

or 
Refer CDN link to import  angular.min.js in your html page. 


Code :



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

<div ng-app="">
<p>Enter "World" in below input box</p>
<p>Name : <input type="text" ng-model="firstname" placeholder="Enter 'World'" "></p>
<h1>Hello  {{firstname}}</h1>

</div>

</body>
</html>


Output:




No comments:

Post a Comment

How to check whether operating system is 64 bit or 32bit?

What is 32 and 64 bit operating system? The terms 32-bit and 64-bit refer to the way a computer's processor that is CPU, handles info...