I have encountered a strange issue where the array value returned as [object Set] when I console log it. It's unclear whether this problem is occurring in the component or the service, but the object values are not being displayed.
This issue arises when the deleteRow function is called from the component and passed to the service.
view.component.ts
@Component({
templateUrl: "viewpage.component.html"
})
export class ViewpageComponent implements AfterViewInit, OnInit, OnDestroy {
// Component logic here
}
// trimmed for brevity
// Delete row functionality
deleteRow() {
// Deletion logic goes here
}
view.service.ts
@Injectable({ providedIn: 'root' })
export class ActionService {
// Service logic here
}