Answer the question
In order to leave comments, you need to log in
Angular. Switching a class from one component to another?
Just started to understand Angular.
There are a couple of child components. How to make it so that in one, by pressing
the child-component1<a (click)="func()">toggle class</a>
button,
in the second, the class of the block (round-trip)
child-component2<div [ngClass]="{'active': isActive}"></div>
changes did not enter.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question