cómo verificar *ngif con enums en componenet.html
<span *ngIf="name === importedSomeEnum.someValue">This has some value</span>
Sathyendra
<span *ngIf="name === importedSomeEnum.someValue">This has some value</span>
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;
}