Ad Code

Ticker

6/recent/ticker-posts

first angularjs app

Create first Angularjs app

AngularJS is a structured framework for web app development that is developed by javascript. It's used to create a dynamic website and static with any scripting language. AngularJS uses HTML syntax to extends your application clearly.


first angularjs app
 Before starting AngularJS you should have basic knowledge of HTML, CSS, and JavaScript.

In your HTML document use the .js file of AngularJS.

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>

Then inside the body tag write the angular js code like this...


<div ng-app="">

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

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

</div>

1. ng-app directive defines the 'owner' of AngularJS Application.
2. ng-model directive binds the value of input fields to the application variable name.
3. ng-bind directive bind the innerHTML of <p> element. 

when this example is running then a type-in text box and you see the at time show in the text which is defined in <p> element.

Post a Comment

1 Comments

  1. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition. We are providing AngularJs training in velachery.
    For more details: AngularJs training in Velachery

    ReplyDelete

Ad Code