How do I add more than just one class on the method Renderer2.addClass();
Example:
this.renderer.addClass(this.el.nativeElement, 'btn btn-primary')
When I try to do so I get the error:
ERROR DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided ('btn btn-primary') contains HTML space characters, which are not valid in tokens.
at EmulatedEncapsulationDomRenderer2.addClass
this.renderer.addClass(this.el.nativeElement, 'btn'); this.renderer.addClass(this.el.nativeElement, 'btn-primary');
– Pennywise