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

0 like 0 dislike
7 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 | 7 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 27, 2019 by shamansyberia
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,949 users