本文整理匯總了TypeScript中ionic-framework/ionic.NavParams.get方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript NavParams.get方法的具體用法?TypeScript NavParams.get怎麽用?TypeScript NavParams.get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ionic-framework/ionic.NavParams
的用法示例。
在下文中一共展示了NavParams.get方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: constructor
constructor(
private nav: NavController,
private params: NavParams
) {
this.order = this.params.get('order');
this.statusMode = this.params.get('statusMode');
this.roleMode = this.params.get('roleMode');
this.userId = this.params.get('userId');
}
示例2: constructor
constructor(
private _nav: NavController,
private _tasksService: TasksService,
private _params: NavParams
) {
this.task = this._params.get('task')
}
示例3: constructor
constructor(private nav:NavController, navParams:NavParams, private gq:gq)
{
// If we navigated to this page, we will have an item available as a nav param
this.selectedSurah = navParams.get('surah');
this.content = [];
this.gq
.select(this.selectedSurah.no, 1)
.getContent()
.take(10)
.subscribe(list => {
this.content.push(list);
});
}
示例4: constructor
constructor(private nav: NavController, navParams: NavParams) {
// If we navigated to this page, we will have an item available as a nav param
this.selectedItem = navParams.get('item');
this.icons = ['flask', 'wifi', 'beer', 'football', 'basketball', 'paper-plane',
'american-football', 'boat', 'bluetooth', 'build'];
this.items = [];
for(let i = 1; i < 11; i++) {
this.items.push({
title: 'Item ' + i,
note: 'This is item #' + i,
icon: this.icons[Math.floor(Math.random() * this.icons.length)]
});
}
}
示例5: onPageDidEnter
onPageDidEnter() {
let move = this.params.get('move');
this.pokemonService.getMoveDetails(move.resource_uri).then(response => {
this.move = response;
});
}
示例6: onPageWillEnter
onPageWillEnter() {
this.viewCtrl.setBackButtonText(this.params.get('pokemon').name);
}
示例7: onPageDidEnter
onPageDidEnter(): void {
this.pokemonService.getPokemon(this.params.get('pokemon')).then(response => {
this.pokemon = response;
});
}
示例8: constructor
constructor(private nav: NavController, navParams: NavParams) {
// If we navigated to this page, we will have an item available as a nav param
this.selectedItem = navParams.get('item');
}
示例9: constructor
constructor(nav:NavController, navParams: NavParams) {
this.nav = nav;
this.quizSet = navParams.get("quizSet");
}