Flat 10% & upto 50% off + 10% Cashback + Free additional Courses. Hurry up

How to create first application in AngularJS

An AngularJS application consists of following three main parts −

  • ng-app− Defines and links application to HTML.
  • ng-model− Binds the values of application data to HTML input controls.
  • ng-bind− Binds the Application data to HTML tags.

Watch this What is Angular 8 video

Steps to create AngularJS Application

Step 1: Load framework

It is done by using <Script> tag.

<script src = "">


Step 2: Define Application using ng-app directive

<div ng-app = "">



Step 3:  Define a model name using ng-model directive

<p>Enter Text: <input type = "text"  ng-model = "name"></p>

Step 4: Bind the value of above model defined using ng-bind directive.

<p>Hello<span ng-bind = "name"></span></p>


Example: Hello Program in AngularJS



<script src = ""></script>

<title> Welcome AngularJS </title>



<h1> Hello Program in AngularJS </h1>

<div ng-app = "">

<p>Enter Text:<input type = "text" ng-model = "name"></p>

<p>Hello <span ng-bind = "name"></span></p>




Save this file as HelloAngularJs.html and run in web browser.



Previous Next

Download Interview Questions asked by top MNCs in 2019?

"0 Responses on AngularJS First Application"

    100% Secure Payments. All major credit & debit cards accepted Or Pay by Paypal.

    Sales Offer

    Sign Up or Login to view the Free AngularJS First Application.