Kirill Ushakov2018-07-16 19:02:17
Kirill Ushakov, 2018-07-16 19:02:17

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)
<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 question

Ask a Question

731 491 924 answers to any question