- update @angular/cli @angular/core 2.ng add @angular/material
- ng g c home
- update the app routing.module.ts by adding path
- clean-up app.component.html & add
- create Material table in component 7.update app.module.ts by adding material modules 8.update component class.
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.
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.
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.
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.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
