Answers for "edit form with sleect in angular"

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>    

// myComponent.component.ts file 
import { Router } from '@angular/router';

constructor(private router: Router) {

}
// myComponent.component.thml
btnClick= function () {
        this.router.navigateByUrl('/user');
};
Posted by: Guest on February-09-2020
0

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
}
Posted by: Guest on May-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language