Prevent user from firing space in a textbox
<p>Previously, I dealt with the problem using jQuery as follows: </p>

<pre><code>$("#textInput").keydown(function (e) {
  return e.which !== 32;
});
</code></pre>

<p>How would you approach it with the new Angular and Typescript?</p>