Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Indexof() is not a function

$
0
0

@togotech wrote:

Hi All,

I am trying to remove an item row from grid. Follwing is my code:
removeBill(bill: any){
let index = this.bills.indexOf(bill);
if (index > -1){
this.bills.splice(index, 1);
}
}

I am getting error as indexOf is not a function... Not sure what I am missing. (HTML has the same function mention). Kindly help

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>