(1) AngularJs Introduction

AngularJS is a java script framework It can be  added to an HTML Page with <script> tag.this libary written in java script.we can use this with  script tag with like this.


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


AngularJS extends with ng-directivs 

ng-app used to define an AngularJS application.
ng-model directive use the binds the value of Html controls(input,select,textarea) to application data. 
ng-bind use to bind application data to the HTML view.


Example 

<html ng-app="">
<head>
 <scriptsrc="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
    <style href="css/bootstrap.css" type="text/css"></style>
</head>
<body>
<input type="text" ng-model="name"/>
<div class="row">

    <div class="Col-md-2">Hello {{name}}</div>

</div>

</body>

</html>



Comments

Popular Posts