本文整理汇总了TypeScript中ionic-framework/ionic.NavParams类的典型用法代码示例。如果您正苦于以下问题:TypeScript NavParams类的具体用法?TypeScript NavParams怎么用?TypeScript NavParams使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NavParams类的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: 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');
}
示例6: constructor
constructor(nav:NavController, navParams: NavParams) {
this.nav = nav;
this.quizSet = navParams.get("quizSet");
}
示例7: onPageDidEnter
onPageDidEnter() {
let move = this.params.get('move');
this.pokemonService.getMoveDetails(move.resource_uri).then(response => {
this.move = response;
});
}
示例8: onPageWillEnter
onPageWillEnter() {
this.viewCtrl.setBackButtonText(this.params.get('pokemon').name);
}
示例9: onPageDidEnter
onPageDidEnter(): void {
this.pokemonService.getPokemon(this.params.get('pokemon')).then(response => {
this.pokemon = response;
});
}