How to change the styles of one element by clicking on another Angular 5?

$('#div1').click(function(){
 $('#div2').style('color', 'red');
});

By jquery the way it's done on angular in the template itself?
June 8th 19 at 16:52
1 answer
June 8th 19 at 16:54
(click) and ngClass will help you with this.
how (click) on one element to change another ngClass?) - madie_Rice commented on June 8th 19 at 16:57

Find more questions by tags Angular