Guest User

Untitled

a guest
Dec 14th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <ng-container matColumnDef="fifthColumn">
  2.     <mat-header-cell *matHeaderCellDef mat-sort-header [ngClass]="{columnsData['fifthColumn'].size:true, shouldLock:shouldLockChecker}" > {{columnsData['fifthColumn'].name}} </mat-header-cell>
  3.     </ng-container>
  4.  
  5.  
  6. where --> columnsData['fifthColumn'].size is a property, that im taking from an object and i want to be always added to the ng class
  7. where --> shouldLock is a string, that i want to add in the ngClass upon some events
Advertisement
Add Comment
Please, Sign In to add comment