title: How can i set zindex in typescript for angular 5
body: <p>I am trying to set <code>zindex</code> for a class using typescript. But it is not working. If you have any idea, please share with me.</p>
  
  <pre><code> ngOnInit() { (&lt;HTMLElement&gt;document.querySelector('.pagemode')).style.z-index = 1;}
  </code></pre>