title: how to declare variable as public const in angular 8
body: <p>I wanted to declare a constant variable like this <code>public const SHIPMENT_MENU_ITEM='SHIPMENT';</code>and use in my html by referring the const variable. But I am not able to do it. What I am missing here.</p>
  
  <pre><code>import { Component } from '@angular/core';
  
  @Component({
    selector: 'app-header-bar',
    templateUrl: './header-bar.component.html',
    styleUrls: ['./header-bar.component.scss']
  })
  
  
  export class HeaderBarComponent {
  
    activeLink: String = 'SHIPMENT';
  
    constructor() {
  
    }
  
    onSelectNav(option) {
      this.activeLink = option;
    }
  
  }
  </code></pre>