🐞 bug report
The issue is caused by package @angular/core
Is this a regression?
When trying to use Renderer2 to add/remove class to directive host element – error is shown, class is not added/removed. When doing the same from component’s code – OK.
🔬 Minimal Reproduction
🔥 Exception or Error
ERROR DOM Exception: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty. ... ERROR DOM Exception: Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty.
🌍 Your Environment