Create a shared service or a common service and declare your Boolean variable there. For example. <p [ngClass]="{'active-class1': ...
確定! 回上一頁