Angular 6 custom directive not updating after value change
问题 I want to make a dynamic menu, the menu itself has css class in which if i check a checkbox the menu has to change position from left to right. Right now the directive works, but only once, when the program loads, if i try to change the check the checkbox within the program nothing happens. the html: <div class="wrapper"> <div class="app-menu" adjustSide side="{{position}}"> <router-outlet></router-outlet> </div> </div> I tried with (side)="position" , [side]="position" and [(side)]="position