Why doesn't this work, as stated in the docs ? renderer.setElementClass(el, 'class1', false); // replace class renderer.setElementClass(el, 'class2', true); // add a class This results in the element only have the class2 instead of both. Reference Angular2 renderer docs Continue reading...