I want to call a shared service function form "Another" component's view file.
For example to delete a record I want to set something like this:
<tr *ngFor="let ddata of tableData.data; let i = ddata"
(click)="delete_record(ddata)"
[class.active]="ddata.discountauthorizationid == selectedRow">
Here delete_record
must be part of a service which I will inject in relavant component.