How to use expression to bind AngularJS data to HTML

1 Answer

0 votes
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>

<div ng-app="">
 
<p>Write text in the input box:</p>
<p>Text: <input type="text" ng-model="txt"></p>
<p>{{txt}}</p>

</div>

</body>
</html>

<!--
run:

test

-->

 



answered May 16, 2017 by avibootz

Related questions

1 answer 297 views
1 answer 293 views
1 answer 282 views
1 answer 272 views
1 answer 348 views
...