When i entered state name and state code and clicked on add that contents should be present on that data table. How to achieve it using angular 4?? i am using angular material data table
Asked
Active
Viewed 2,057 times
-1

chethu
- 127
- 1
- 3
- 14
-
Recreate your data source. – Apr 11 '18 at 13:58
-
can u please help me how to do it – chethu Apr 11 '18 at 14:16
-
1No I can't. But the documentation can. https://material.angular.io/components/table/overview – Apr 11 '18 at 14:26
-
1Follow this link [add new row to mat-table](https://stackoverflow.com/questions/49983710/add-a-new-row-into-mat-table-using-angular-4/49996015#49996015) – chethu Apr 24 '18 at 11:00
1 Answers
2
You need to push the data into datasource refer this link you will get a solution Add a new row

chethu
- 353
- 1
- 5
- 16