You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
locationStrategy: 'path' does not work with a param
Expected behavior:
The path with param must work for testing and PWA.
Steps to reproduce:
Download the tutorial and do the configuration for the links on app.module.ts
on list.ts line 36: this.navCtrl.push(ItemDetailsPage, {'itemId': item.id});
on item-detail.ts :
constructor(public navCtrl: NavController, public navParams: NavParams) {
// If we navigated to this page, we will have an item available as a nav param
let id = navParams.get('itemId');
this.selectedItem =
{
title: 'Item ' + id,
note: 'This is item #' + id,
};
}
npm install lite-server
create a bs-config.json file in the package.json directory:
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Ionic version: (check one with "x")
[ ] 1.x
[ x] 2.x
I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
locationStrategy: 'path' does not work with a param
Expected behavior:
The path with param must work for testing and PWA.
Steps to reproduce:
this.navCtrl.push(ItemDetailsPage, {'itemId': item.id});
on mobile its fine, but on the browser the link 'http://localhost:8100/list/5' for example is broken but
http://localhost:8100/list work fine
Related code:
app.module.ts
bs-config.json
package.json
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: