Skip to content

Adding Multiple Mat Table on a single page in angular 9

Notifications You must be signed in to change notification settings

S-1408/MultiMatTable-Angular

Repository files navigation

Angula Multi MatTable

Screenshot (294)

Content Steps

  1. update @angular/cli @angular/core 2.ng add @angular/material
  2. ng g c home
  3. update the app routing.module.ts by adding path
  4. clean-up app.component.html & add
  5. create Material table in component 7.update app.module.ts by adding material modules 8.update component class.

For Addding multiple table we need to take care of following

1.Sorting- we need to define a template variable (#TableOneSort :matSort). 2.Paginator - we need to define a template variable (#TableOnePaginator: matPaginator. 3.Filter -we have to define key with applyFilterOne for table A and For table B use diffrent key like applyFiltertwo.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

Adding Multiple Mat Table on a single page in angular 9

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published