title: Getting error while creating button in angular
body: <p>I want to create button dynamically through angular, i am doing this with JavaScript right now and able to create button, i am trying to change the classname of the button but getting below error ,</p>
  
  <p>error:</p>
  
  <blockquote>
    <p>Property 'className' does not exist on type <code>HTMLCollectionOf&lt;Element&gt;</code>.</p>
  </blockquote>
  
  <p>code:</p>
  
  <pre><code>var element = document.getElementsByClassName("btnshow")
  element.innerHTML = "btnhide";
  console.log(HTMLElement);
  </code></pre>