<!DOCTYPE html> <html> <head> <title>Angular Example</title> <meta charset="utf-8" /> <link rel="stylesheet" href="styles/style.css"> <script> window. { var input = document.querySelector('#input'); var span = document.querySelector('#name'); input.addEventListener('keyup', function() { span.innerHTML = input.value; }); } </script> </head> <body> <section> <p>Hello <span id="nam