Check out example codes for "how to check *ngIf with ENUMs in componenet.html". It will help you in understanding the concepts better.

Code Example 1

<span *ngIf="name === importedSomeEnum.someValue">This has some value</span>

Code Example 2

import { Component } from '@angular/core';
import { SomeEnum } from './global';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html',
  styleUrls: [ './app.component.css' ]
})
export class AppComponent  {
  name = SomeEnum.someValue;
  importedSomeEnum = SomeEnum;
}

Learn ReactJs, React Native from akashmittal.com