<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.3/angular.min.js"></script>
<title>Simple Input MVC</title>
</head>
<body>
<h2>Enter Student Info</h2>
<div>
Name: <input ng-model="student.name" placeholder="Enter name"><br>
Age: <input ng-model="student.age" type="number" placeholder="Enter age"><br><br>
<strong>Preview:</strong><br>
Name: {{student.name}} <br>
Age: {{student.age}}
</div>
</body>
</html>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter