shamrickus commented on code in PR #6914:
URL: https://github.com/apache/trafficcontrol/pull/6914#discussion_r904094710


##########
experimental/traffic-portal/src/app/shared/generic-table/generic-table.component.html:
##########
@@ -21,7 +21,7 @@
                        <fa-icon [icon]="caretIcon" class="caret" 
[ngClass]="{'rotate': showMenu}"></fa-icon>
                </button>
                <mat-menu #menu="matMenu">
-                       <button mat-menu-item *ngFor="let c of columns; 
orderBy:'colDef.headerName'" (click)="toggleVisibility($event, c.getColId())">
+                       <button mat-menu-item *ngFor="let c of columns" 
(click)="toggleVisibility($event, c.getColId())">

Review Comment:
   Since it was invalid, the console was throwing warning (which is how I found 
it). Changing it to `c.headerName` makes it throw an error instead.
   ```
   NG0303: Can't bind to 'ngForOrderBy' since it isn't a known property of 
'button' (used in the 'GenericTableComponent' component template).
   1. If 'button' is an Angular component and it has the 'ngForOrderBy' input, 
then verify that it is a part of an @NgModule where this component is declared.
   2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' 
of this component.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to