<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.3/angular.min.js"></script>
</head>
<body>
<h2>Simple Form</h2>
<form ng-submit="submitted=true">
Name: <input ng-model="user.name" required><br>
Email: <input type="email" ng-model="user.email" required><br>
<button type="submit">Submit</button>
</form>
<div ng-if="submitted">
<p>Name: {{ user.name }}</p>
<p>Email: {{ user.email }}</p>
</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