This post textbox value show same text in h1 tag.
Script :
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<div ng-app="">
<table><tr><td>
Enter the Name :</td><td> <input type="text" ng-model="name" placeholder="Enter your name "></td></tr>
<tr><td colspan='2'><h1>Hello {{name}}</h1></td></tr>
</table>
</div>
Script :
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<div ng-app="">
<table><tr><td>
Enter the Name :</td><td> <input type="text" ng-model="name" placeholder="Enter your name "></td></tr>
<tr><td colspan='2'><h1>Hello {{name}}</h1></td></tr>
</table>
</div>
No comments:
Post a Comment