Practical 5

PHOTO EMBED

Sat Mar 07 2026 11:40:16 GMT+0000 (Coordinated Universal Time)

Saved by @Manasi123 #html


<!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>
content_copyCOPY