-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Access user page for example like so:
localhost:8100/#/user/myproduct
Result will be "myproduct"
import { IonicPage, NavParams } from "ionic-angular";
import { Component } from "@angular/core";
import { NavController } from "ionic-angular";
import { TranslateService } from "@ngx-translate/core";
@IonicPage({
name: "user",
segment: "user/:product"
})
@Component({
selector: "page-home",
templateUrl: "home.html"
})
export class HomePage {
param: string;
today: number;
constructor(
public navCtrl: NavController,
private translate: TranslateService,
np: NavParams
) {
this.today = Date.now();
this.changeLanguage("cn");
this.param = np.get("product");
console.log("Paramter is " + this.param);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels