Navigating to a new component view error

#1

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


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

#2

What is the html like?

You should have something like:

(click)=‘viewItem(item)’

1 Like
#3

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

But without removing the selector nothing changes.