<%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html
PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="Script/angular.min.js"></script>
<script>
</script>
<title>AngularJS Demo</title>
</head>
<body ng-app>
<h2>Enter Your Name</h2>
<input type="text"
ng-model="name">
<br>
<h3>Hello {{name}}</h3>
</body>
</html>
_______________________________________________________________________
ng-app : indicate this is angularjs application
ng-model : binding data to property
{{Name}} : value binding on page
_______________________________________________________________________
OutPut
No comments:
Post a Comment