title: How can I use JavaScript code in Angular 7?
body: <p>I'm trying to make a collapsible navbar with the help of MaterializeCSS when used on mobile screen and need to use JavaScript code in it.
  Where should I write this JavaScript code?</p>
  
  <p>This is the code I want to use:</p>
  
  <pre><code>**$(document).ready(function(){
      $('.sidenav').sidenav();
    });**
  </code></pre>