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


TypeScript Nav.push方法代码示例

本文整理汇总了TypeScript中ionic-angular.Nav.push方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Nav.push方法的具体用法?TypeScript Nav.push怎么用?TypeScript Nav.push使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ionic-angular.Nav的用法示例。


在下文中一共展示了Nav.push方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1:

 this.userData.HasUserSeenTutorialAsync().then((hasSeen)=> {
   if (!hasSeen) {
     this.nav.push(TutorialPage)
   }
   if (!this.userData.HasUserRegistered) {
     this.nav.push(SignupPage)
   }
 });
开发者ID:RickyTaterSalad,项目名称:FireIonic2,代码行数:8,代码来源:app.ts

示例2: viewSurvey

 viewSurvey(survey, surveyProgress) {
   this.nav.push(BeginSurveyPage, {
     survey,
     surveyProgress: this.surveyProgress,
     inProgress: this.inProgress
   });
 }
开发者ID:marenwoodruff,项目名称:m2,代码行数:7,代码来源:survey-description.component.ts

示例3: viewSurvey

 private viewSurvey(survey, lastQuestionIndex): void {
   this.nav.push(SurveyPage, {
     survey,
     lastQuestionIndex,
     inProgress: this.inProgress
   });
 }
开发者ID:marenwoodruff,项目名称:m2,代码行数:7,代码来源:begin-survey.page.ts

示例4: viewSurveys

 private viewSurveys(): void {
     this.nav.push(EventSurveysPage, {
         surveys: this.surveys,
         event: this.event,
         userEvents: this.userEvents
     });
 }
开发者ID:marenwoodruff,项目名称:m2,代码行数:7,代码来源:event.component.ts

示例5: openPage

 /**
  * Opens a given page
  * @param {MenuItem} page - Clicked page item
  * @return {void}
  */
 public openPage(page: MenuItem): void {
     if (page.component) {
         if (!page.home) this.nav.push(page.component);
         else this.rootPage = page.component;
     }
     else if (page.link) window.open(page.link, '_system');
     else if (page.action) page.action();
 }
开发者ID:lefreire,项目名称:ionic,代码行数:13,代码来源:app.ts

示例6: openPage

 public openPage(page: any): void {
   // close the menu when clicking a link from the menu
   this.menu.close();
   // navigate to the new page if it is not the current page
   this.nav.push(page.component, {
     chain: this.apiProvider.networkSettings.value.selectedNetwork.chain,
     network: this.apiProvider.networkSettings.value.selectedNetwork.network
   });
 }
开发者ID:bitjson,项目名称:bitcore,代码行数:9,代码来源:app.component.ts

示例7: openPage

 openPage(page) {
   // close the menu when clicking a link from the menu
   this.menu.close();
   if (page.component == AccueilPage) {
     //Principal page, it's root page
     this.nav.setRoot(page.component);
   } else {
     // navigate to the new page if it is not the current page
     this.nav.push(page.component);
   }
 }  
开发者ID:gdessard,项目名称:handballStats,代码行数:11,代码来源:principal.ts

示例8: openPage

 /**
  * openPage
  *
  * opens the selected page
  * @param page
  */
 openPage(page:PageInterface) {
   // pushes selected page (except if its the HomePage, then it sets a new root)
   if ((page.pageName == HomePage) && (this.nav.getActive().component != HomePage)) {
     this.nav.setRoot(page.pageName, {fromSideMenu: true});
   } else {
     if (this.nav.getActive().component != page.pageName) {
       this.nav.popToRoot();
       this.nav.push(page.pageName);
     }
   }
 }
开发者ID:University-of-Potsdam-MM,项目名称:ReflectUP,代码行数:17,代码来源:app.component.ts

示例9: setLoggedInAndRegisteredView

 private setLoggedInAndRegisteredView() {
   //sets the entire view stack
   this.nav.push(TabsPage).then(()=> {
     this.userData.HasUserSeenTutorialAsync().then((hasSeen)=> {
       if (!hasSeen) {
         this.nav.push(TutorialPage)
       }
       if (!this.userData.HasUserRegistered) {
         this.nav.push(SignupPage)
       }
     });
   });
 }
开发者ID:RickyTaterSalad,项目名称:FireIonic2,代码行数:13,代码来源:app.ts

示例10: startMultiPlayerGame

 startMultiPlayerGame() {
   this._gameStateService.startNewMultiPlayerGame();
   this._nav.push(GameBoard);
 }
开发者ID:WalternativE,项目名称:battleships,代码行数:4,代码来源:main-menu.ts


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