IonicPage - More than one parameter

For this url:
http://localhost:8100/#/multi/20/abcd/78-89-123

…This example will print
{id: "20", descp: "abcd", freetext: "78-89-123"}

@IonicPage({
    segment: 'multi/:id/:descp/:freetext'
})
@Component({
  selector: 'page-multi-params',
  templateUrl: 'multi-params.html',
})
export class MultiParamsPage {

  constructor(public navCtrl: NavController, public navParams: NavParams) {
     console.log(navParams.data)
  }

}

ionic info:

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

local packages:

@ionic/app-scripts : 2.1.3
Ionic Framework    : ionic-angular 3.6.0

System:

Node : v6.10.1
npm  : 5.3.0
OS   : Windows 7
5 Likes