As for Angular 5 to change the class of one component from another?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
13 views
Hi all.
Let's say I have a navbar component.component.ts with html
Navigation

And there is a second component aside.component.ts


By clicking the button in the component aside you are going to change the class navbar component, for example : class test class test1. These components are neither children nor parent each other.
Code optional, just tell me which way to look.
Thank you.
by | 13 views

1 Answer

0 like 0 dislike
Services
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 28, 2019 by shamansyberia
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,573 users