Title: 
new angular development features and improvements with error handling 
webinar by google employees

About Angular: 
Angular is a Typescript-based open-source front-end web application 
platform 
led by the Angular Team at Google and by a community of individuals and 
corporations.

What we’ll cover in this webinar... Any error you can fix after this webinar
1. Angular error handling with latest strategies
2. New tips to write clean and per-formant angular application
3. Improving the testability of the angular app
4. Add caching to APIs and Migrating to PWA
5. State Management in Angular
6. User Activity logging with Azure Application Insights
7. Integrate with any technology

Speaker: 
Ryan Russul who is a speaker and having 8 years of experience in UI 
development and worked 
as senior solution architect, practising code re-usability and enterprise 
practices 
in angular development among all teams who were responsible for angular 
development.

Join in webinar: http://ovpurl.com/c2V5oNgM

[image: angular-webinar-31st.jpg]


On Monday, October 15, 2018 at 12:35:44 PM UTC+5:30, Partha Majumdar wrote:
>
>
> Dear Sir/Madam,
>
> I have implemented a MAt-Table inside a Mat-Table. The data displayed is 
> correct. However, for every row of the parent row, it shows one extra empty 
> row in the Mat-Table. As I am unable to trace the error, I seek help on 
> this forum. Please help.
>
> Regards,
> Partha
>
> The HTML code is as follows.
> <div class="mat-elevation-z8">
> <table mat-table [dataSource]="listData" class="mat-elevation-z8" matSort 
> multiTemplateDataRows width="100%">
>
> <!--- Note that these columns can be defined in any order.
> The actual rendered columns are set as a property on the row definition" 
> -->
>
> <!-- Tax Code Column -->
> <ng-container matColumnDef="taxCode">
> <th mat-header-cell *matHeaderCellDef mat-sort-header> Tax Code </th>
> <td mat-cell *matCellDef="let element" align="left"> {{element.taxCode}} 
> </td>
> </ng-container>
>
> <!-- Tax Name Column -->
> <ng-container matColumnDef="taxDescription">
> <th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th>
> <td mat-cell *matCellDef="let element" align="left"> 
> {{element.taxDescription}} </td>
> </ng-container>
>
> <!-- Tax Type Code Column -->
> <ng-container matColumnDef="taxTypeCode">
> <th mat-header-cell *matHeaderCellDef mat-sort-header> Tax Type Code </th>
> <td mat-cell *matCellDef="let element" align="left"> 
> {{element.taxTypeCode}} </td>
> </ng-container>
>
> <!-- Edit Column -->
> <ng-container matColumnDef="edit">
> <th mat-header-cell *matHeaderCellDef>
> </th>
> <td mat-cell *matCellDef="let row">
> <a mat-button matTooltip="Edit" [routerLink]="['/tax/edit', row.taxCode]" 
> *ngIf="isUserAuthenticated"><mat-icon>create</mat-icon></a>
> </td>
> </ng-container>
>
> <!-- Delete Column -->
> <ng-container matColumnDef="delete">
> <th mat-header-cell *matHeaderCellDef>
> </th>
> <td mat-cell *matCellDef="let row">
> <button mat-button matTooltip="Delete" color="warn" (click)=
> "onDelete(row.taxCode)" *ngIf="isUserAuthenticated"><mat-icon>clear</
> mat-icon></button>
> </td>
> </ng-container>
>
> <!-- Expanded Content Column - The detail row is made up of this one 
> column that spans across all columns -->
> <ng-container matColumnDef="expandedDetail">
> <td mat-cell *matCellDef="let element" [attr.colspan]=
> "displayedColumns.length">
> <div class="example-element-detail"
> [@detailExpand]="element == expandedElement ? 'expanded' : 'collapsed'" 
> *ngIf="element.taxVersion.length > 0">
> <table mat-table [dataSource]="element.taxVersion" class=
> "mat-elevation-z8" width="100%">
> <ng-container matColumnDef="taxID">
> <th mat-header-cell *matHeaderCellDef> Tax ID </th>
> <td mat-cell *matCellDef="let element"> {{element.taxID}} </td>
> </ng-container>
> <ng-container matColumnDef="versionCode">
> <th mat-header-cell *matHeaderCellDef> Version Code </th>
> <td mat-cell *matCellDef="let element"> {{element.versionCode}} </td>
> </ng-container>
> <ng-container matColumnDef="versionDate">
> <th mat-header-cell *matHeaderCellDef> Version Date </th>
> <td mat-cell *matCellDef="let element"> {{element.versionDate}} </td>
> </ng-container>
> <ng-container matColumnDef="taxRate">
> <th mat-header-cell *matHeaderCellDef> Tax Rate </th>
> <td mat-cell *matCellDef="let element"> {{element.taxRate}} </td>
> </ng-container>
> <tr mat-header-row *matHeaderRowDef="displayedColumnsVersion"></tr>
> <tr mat-row *matRowDef="let row; columns: displayedColumnsVersion;"></tr>
> </table>
> </div>
> </td>
> </ng-container>
>
> <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
> <tr mat-row *matRowDef="let row; columns: displayedColumns;"
> class="example-element-row"
> [class.example-expanded-row]="expandedElement === row"
> (click)="expandedElement = row"
> ></tr>
> <tr mat-row *matRowDef="let row; columns: ['expandedDetail']" class=
> "example-detail-row"></tr>
> </table>
>
> <mat-paginator [pageSizeOptions]="[7, 15, 20]" showFirstLastButtons></
> mat-paginator>
> </div>
>
>
> The display is as follows:
>
> [image: errMatTable.jpeg]
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to