I am trying to sum up the values entered in the mat-table column using an input.
mat-table
I have created a table with 3 columns: Account Id, A
Account Id
A
try this in your ngOnInit function. You need dynamically create the value property.
ngOnInit
value
ngOnInit(){ this.accdetailservice.accountdetails().subscribe(data => let tempObject = data.map(obj => ({...obj, value: 0})); this.dataSource1.data = tempObject; ); }