edit form with sleect in angular code example
Example 1: add a route to a buttoin in angular
<button type="button" class="btn btn-primary-outline pull-right" (click)="btnClick();"><i class="fa fa-plus"></i> Add</button>
import { Router } from '@angular/router';
constructor(private router: Router) {
}
btnClick= function () {
this.router.navigateByUrl('/user');
};
Example 2: How to add new row to a particular index of a ag grid using angular 7
addRow(){
rowData.splice(targetIndex, 0, newRow);
this.gridApi.setRowData(rowData);
}