Horje
how to check *ngIf with ENUMs in componenet.html Code Example
how to check *ngIf with ENUMs in componenet.html
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;
}
how to check *ngIf with ENUMs in componenet.html
<span *ngIf="name === importedSomeEnum.someValue">This has some value</span>




Html

Related
cast2tv.net not working Code Example cast2tv.net not working Code Example
default php version ubuntu 20.04 Code Example default php version ubuntu 20.04 Code Example
strip newlines in jekyll Code Example strip newlines in jekyll Code Example
how to detect what someone typed html code Code Example how to detect what someone typed html code Code Example
how inside a word or sentence in circle border in html Code Example how inside a word or sentence in circle border in html Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7