mika-el
4/6/2018 - 11:45 AM

@HostBinding

Dynamique Hostbinding:

@HostBinding('class.control-sidebar-open') get getIsOpen() {
  return this.isOpen;
}

Version avec Renderer

this.renderer.setElementClass(this.elementRef.nativeElement, 'control-sidebar-open', false);