I want to include to two function on click
<li class="active" (click) ="routeTransaction(), activateClass(classChange)" *ngIf="permissionKeys.indexOf('TRANSACTIONS')>-1" [ngClass]="{'liactive': classChange}" >
<a >
<i class="glyphicon glyphicon-cog"></i>
<span>Transaction</span>
</a>
</li>
This is giving an error; how could it be fixed?
Seperate them by semicolon. Its the same like writing multiple statements inside a block scope.
<li class="active" (click) ="routeTransaction(); activateClass(classChange)" *ngIf="permissionKeys.indexOf('TRANSACTIONS')>-1" [ngClass]="{'liactive': classChange}" >
You need to separate by ;
not by ,
(click) ="routeTransaction(); activateClass(classChange)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With