Hello, !

Complete Code - Practical 04

The following is the complete working code used for the result shown above.

index.html

<!DOCTYPE html>
<html lang="en" ng-app>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>ng-model and ng-bind</title>
  <script src="../../vendor/angular.min.js"></script>
  <link rel="stylesheet" href="../../practical-code.css">
</head>
<body>
  <section class="practical-result">
  <label>Enter name <input type="text" ng-model="name"></label>
  <h3>Hello, <span ng-bind="name || 'Guest'"></span>!</h3>
  </section>
</body>
</html>