A
A
alehandroWEB2018-02-02 11:02:37
Angular
alehandroWEB, 2018-02-02 11:02:37

How to change styles of one element on click to another Angular 5?

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

On jquery, how to do the same in angular in the template itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Coder321, 2018-02-02
@Coder321

(click) and ngClass will help you with this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question