angular 2 dropdown with filter code example
Example 1: how to add dropdown with filter in angular material
<mat-autocomplete #auto="matAutocomplete">
<mat-option *ngFor="let option of options" [value]="option">
{{option}}
</mat-option>
</mat-autocomplete>
Example 2: How to add new row to a particular index of a ag grid using angular 7
addRow(){
// Assuming newRow is an object, such as {"slNo": this.index,"id":3, "rank":1};
rowData.splice(targetIndex, 0, newRow);
this.gridApi.setRowData(rowData); // optional
}