add and remove class in angular 6 examples
Example 1: how to create app.routing.module.ts in angular 6
ng generate module app-routing --flat --module=app
Example 2: how to add class to element on mouseclick with js
// element.classList.add("newClass");
// or
// element.className += "newClass";
// Example
document.querySelector("button").onclick = function addNewClass() {
document.querySelector(".elementToChange").classList.add("newClass");
}