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;
}
<span *ngIf="name === importedSomeEnum.someValue">This has some value</span>