Attribute directive with Angular 6 CLI
Sometimes you want to apply the same style or behaviour to multiple DOM elements. For example you want to highlight a element while it's hovered with the mouse and unhighlight it when hover is removed. The bad way would be to write the logic in every component. Angular 6 has something called…