Friday, October 30, 2015

How to create simple textbox value show another html control angular js Script?

 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>







No comments:

Post a Comment