I have following method in typescript, I need to bind to angular grid
CountryService
GetCountries() {
return this.http.get(`http
//Component. home.ts :
contacts:IContacts[];
ionViewDidLoad() {
this.rest.getContacts()
.subscribe( res=> this.contacts= res as IContacts[]) ;
// reorderArray. accepts only Arrays
Reorder(indexes){
reorderArray(this.contacts, indexes)
}
// Service . res.ts
getContacts(): Observable {
return this.http.get(this.apiUrl+"?results=5")
And it works fine