skip to Main Content

Html – Angular mat table sorting when column has two properties

I am implementing a table with MatSort where every column sorting works except one (the third): <ng-container matColumnDef="nbreEnregistrementTotal"> <th mat-header-cell *matHeaderCellDef mat-sort-header>N° enregistrement dans le fichier</th> <td mat-cell *matCellDef="let row"> {{row.nbreEnregistrementTotal}}</td> </ng-container> <ng-container matColumnDef="nbreMouvementsDetailsDiffusees"> <th mat-header-cell *matHeaderCellDef mat-sort-header>N° enregistrement acceptées</th>…

VIEW QUESTION

Property 'default' does not exist on type 'typeof firebase'

I see typeOf error on default keyword. Here are my imports: import { AngularFirestore } from '@angular/fire/compat/firestore'; import { map } from 'rxjs/operators'; import firebase from 'firebase/compat/app'; import 'firebase/compat/firestore'; export class PostsService { constructor(private afs: AngularFirestore) { } countViews(postId: any){…

VIEW QUESTION
Back To Top
Search