Reputation: 271
I am new to angular. I have created a HTML where the user enters anything into the text box, and at the same time it should appear on the screen whatever you have input to the text box.
HTML CODE:
<html ng-app>
<head>
<title>Hello World - AngularJS</title>
<script type="text/javascript"
src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
</head>
<body>
Write some text in textbox:
<input type="text" ng-model="sometext" />
<h1>Hello {{ sometext }}</h1>
</body>
</html>
Upvotes: 0
Views: 60
Reputation: 271
Completely write out the source
<head>
<title>Hello World - AngularJS</title>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
</head>
Upvotes: 1