Navigating to a new component view error

Component I am going to

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

@Component({
  selector: 'details',
  templateUrl: 'details.html'
})
export class DetailsPage {

  constructor(public navCtrl: NavController) {

  }

}

The component where I send it to DetailsPage
image
image

Now the work around of this issue is that I have to delete the selector

What is the html like?

You should have something like:

(click)=‘viewItem(item)’

1 Like

Yes, its like this
<button ion-button clear item-right
(click)=“viewItem(item.data)”>View

But without removing the selector nothing changes.