• Overview
@angular/common

NgClass

directive

Adds and removes CSS classes on an HTML element.

  
    class NgClass implements DoCheck {}
  
  

klass

string

ngClass

string | string[] | Set<string> | { [klass: string]: any; } | null | undefined

ngDoCheck

void
@returnsvoid
Jump to details