當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。