• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript ionic-angular.Nav类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: updateNav

 private updateNav(route: ActivatedRoute) {
   if (route.component === IonicApp) {
     route = route.firstChild;
     if (!this.nav.getActive() || this.nav.getActive().component !== route.component) {
       this.nav.setRoot(route.component, route.params, { animate: true, direction: 'forward' });
     }
   }
 }
开发者ID:firatkaradag,项目名称:dbcook,代码行数:8,代码来源:app.component.ts


示例2:

 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


示例3: openPage

 //Open page nav + tabs solution thanks to ionic-conference
 //https://github.com/driftyco/ionic-conference-app/
 openPage(page) {
     if (page.component) {
         if (page.tab) {
             this.nav.setRoot(page.component, {tabIndex: page.tab});
         } else {
             this.nav.setRoot(page.component);
         }
     }
 }
开发者ID:epeuva,项目名称:myAngularCampIonic2app,代码行数:11,代码来源:app.ts


示例4: openPage

 openPage(page) {
   // Reset the content nav to have just this page
   // we wouldn't want the back button to show in this scenario
   this.nav.setRoot(page.component);
   if(page.title== 'Logout'){
     this.storage.set('user.ID',0);
     this.nav.setRoot('LoginPage');
   }
 }
开发者ID:stojancelevski,项目名称:pedometerv2,代码行数:9,代码来源:app.component.ts


示例5: 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


示例6: 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


示例7:

    this.platform.ready().then(() => {
      if (this.authService.getSession())
        this.nav.setRoot(HomePage);
      else
        this.nav.setRoot(LoginPage);

      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      StatusBar.styleDefault();
      Splashscreen.hide();
    });
开发者ID:eduardorost,项目名称:meutransporte,代码行数:11,代码来源:app.component.ts


示例8: viewSurvey

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


示例9:

            .subscribe(result => {
                let companyData={
                  companyName:credentials.controls.CompanyName.value,
                  companyUsername:credentials.controls.Username.value,
                  companySecret:credentials.controls.SharedSecret.value,
                  reportSuites:result.report_suites,
                  researchedSuites:[]
                }

                //these things only need to live in temp storage
                this.storageService.currentCompany=credentials.controls.CompanyName.value;
                this.storageService.currentUsername=credentials.controls.Username.value;
                this.storageService.currentSharedSecret=credentials.controls.SharedSecret.value;

                //here is where we write to long-term and short-term storage
                if(this.storageService.companies && !this.storageService.companies.includes(credentials.controls.CompanyName.value)){
                  //only add the company to the companies array if it doesn't yet exist
                  this.storageService.addToStorageArray("companies",credentials.controls.CompanyName.value);
                  if(this.DTMenabled===true){ _satellite.data.customVars["api type"]="company login:refresh"}
                }else{
                  if(this.DTMenabled===true){_satellite.data.customVars["api type"]="company login:new"}
                }
                this.storageService.addToStorageComplex("companyData",credentials.controls.CompanyName.value,companyData)
                this.storageService.addToStorageSimple("currentCompany",credentials.controls.CompanyName.value)
                
                if(this.DTMenabled===true){_satellite.track("api success")}
                this.events.publish('showPage:RSList', true);
                loading.dismiss();
                this.nav.setRoot(TabsPage, { index: '1' });
            }, error => {
开发者ID:jkunz,项目名称:pocketSDR,代码行数:30,代码来源:company-login.ts


示例10:

 this.auth.getUserData().subscribe(data => {
   if (!this.isAppInitialized) {
     console.log(data);
     this.nav.setRoot(BulletinBoardPage);
     this.isAppInitialized = true;
   }
 }, err => {
开发者ID:lgmbarata,项目名称:eCondominio,代码行数:7,代码来源:app.ts



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript ionic-angular.NavController类代码示例发布时间:2022-05-25
下一篇:
TypeScript ionic-angular.ModalController类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap