When i adding router module app.module.ts showing an error

The error is. Cannot find module “@angular/router”

Please tell us more.

However why adding ‘router module’ ? I think the NavController is great, since it (i guess) is built upon angular router.

@shrekuu i want to routing different pages. import the RouterModule component into app.module.ts

put like that :import { RouterModule } from ‘@angular/router’;
imports: [
RouterModule.forRoot([
{path:‘details’,component:ProjectlistingDetailsPage}
])
]

No. You do not need to add this to app.module.ts.

When you want to nav to another page, you can do the following:

import { NavController } from 'ionic-angular';

// import the page you nav to
import { UserPage } from "../pages/user/user";

class MyComponent {
  constructor(public navCtrl: NavController) {

  }

  goToUserPage() {
    // nav to another page, just push the page to the `nav stack`, please read the link about the NavController for more details.
    this.navCtrl.push(UserPage);
  }
}

@shrekuu This the basic navigation i want to redirect page uding to anchor tag like href="/details" .how can i do that.?

I don’t understand why you want to do that and sorry I cannot help much. We should stick to the Ionic way when navigate between pages.

Ok, let me guess you want to open an external website, then you can try the in app browser:

@shrekuu actually i want to do that. i have a list of item when i clicked on a perticuler item i want to show the details of the clicked item .this is my requerment.

like the list of item is
A
B
C
D

when i click on A .after click on A i want to showing the details into the another page

Ionic doesn’t use the Angular Router by default.
You should look into doing it the Angular way as @shrekuu said.