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

_co.viewSingle is not a function

$
0
0

@salemcode8 wrote:

Hello,

I have this function in my Ionic in page

 viewSingle(id: number){
     this.navCtrl.push(PlacePage,{id: id});
  }

which must take the user to another page with id of item

now i’m calling it from the same component template like this

<search-item (click)="viewSingle(item.id)" *ngFor="let item of items" [item]="item"></search-item>

but when i click the item ionic gives me error which

_co.viewSingle is not a function

How i can fix the error?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



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