当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ionic.NavParams类代码示例

本文整理汇总了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');
 }
开发者ID:slevp,项目名称:baijiadu-auction,代码行数:9,代码来源:order-detail.ts

示例2: constructor

 constructor(
   private _nav: NavController,
   private _tasksService: TasksService,
   private _params: NavParams
 ) {
     this.task = this._params.get('task')
 }
开发者ID:divanvisagie,项目名称:isoright,代码行数:7,代码来源:task.ts

示例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);
            });
    }
开发者ID:aligos,项目名称:mobile-app,代码行数:14,代码来源:surah-detail.ts

示例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)]
      });
    }
  }
开发者ID:maksengc,项目名称:dxChange,代码行数:16,代码来源:list.ts

示例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');
 }
开发者ID:MarsupiL,项目名称:zivver,代码行数:4,代码来源:item-details.ts

示例6: constructor

 constructor(nav:NavController, navParams: NavParams) {
     this.nav = nav;
     this.quizSet = navParams.get("quizSet");
 }
开发者ID:mjsorribas,项目名称:quiz,代码行数:4,代码来源:summary.ts

示例7: onPageDidEnter

 onPageDidEnter() {
     let move = this.params.get('move');
     this.pokemonService.getMoveDetails(move.resource_uri).then(response => {
         this.move = response;
     });
 }
开发者ID:android-sos,项目名称:ionic2-pokedex,代码行数:6,代码来源:move.ts

示例8: onPageWillEnter

 onPageWillEnter() {
     this.viewCtrl.setBackButtonText(this.params.get('pokemon').name);
 }
开发者ID:android-sos,项目名称:ionic2-pokedex,代码行数:3,代码来源:move.ts

示例9: onPageDidEnter

 onPageDidEnter(): void {
     this.pokemonService.getPokemon(this.params.get('pokemon')).then(response => {
         this.pokemon = response;
     });
 }
开发者ID:android-sos,项目名称:ionic2-pokedex,代码行数:5,代码来源:detail.ts


注:本文中的ionic-framework/ionic.NavParams类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。