當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ionic-angular.ionicBootstrap函數代碼示例

本文整理匯總了TypeScript中ionic-angular.ionicBootstrap函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript ionicBootstrap函數的具體用法?TypeScript ionicBootstrap怎麽用?TypeScript ionicBootstrap使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了ionicBootstrap函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: ionicProviders

 Meteor.startup(function() {
     // define array of bootstrap providers
     var providers = ionicProviders(args.providers).concat(args.providers || [], METEOR_PROVIDERS);
     // auto add Ionic directives
     let directives = args.directives ? args.directives.concat(IONIC_DIRECTIVES) : IONIC_DIRECTIVES;
     // automatically provide all of Ionic's directives to every component
     providers.push(provide(PLATFORM_DIRECTIVES, { useValue: [directives], multi: true }));
     if (args.prodMode) {
         enableProdMode();
     }
     ionicBootstrap(cls, providers, args.config);
     return cls;
 });
開發者ID:LeonidShamis,項目名稱:Ionic2-Meteor1.3-Starter,代碼行數:13,代碼來源:_meteor-ionic-app.ts

示例2: if

            }
            else if(type == 'logout')
            {
              localStorage.removeItem('username');
              localStorage.removeItem('password');
              localStorage.removeItem('MPin');
              this.nav.setRoot(LoginPage);
            }
          }
        },
        {
          text:'No',
          handler : () => {alert.dismiss(); this.dialogOpened = false;}
        }
      ]
    });

    alert.present();
  }
}

ionicBootstrap(MyApp, [CommonService], {
  //tabbarPlacement: 'bottom'
  // Below code is for ionic View only, In Real devices it works perfectly.
  platforms: {
      ios: {
        statusbarPadding: true
      }
    }
});
開發者ID:tejit2004,項目名稱:app,代碼行數:30,代碼來源:app.ts

示例3: buyerEvents

            // stop scanning
            self.centralBle.stop();
        });

        // write event
        this.events.subscribe('central:write', (eventData) => {
            console.log('event: write', eventData[0]);
            self.centralBle.write(JSON.stringify(eventData[0]));
        });
    }

    /**
     * Buyer event listeners
     */
    buyerEvents() {
        // initialize the peripheral ble
        this.peripheralBle.init();

        this.events.subscribe('peripheral:stop', (eventData) => {
            this.peripheralBle.stop();
        });

        // do some cleanup by removing the looking for product data
        this.localStorage.removeFromLocal('looking_for');
    }
}

ionicBootstrap(MyApp, [
    provide('CouchDBEndpoint', {useValue: 'http://192.168.0.109:5984/'}),
    provide('APIEndpoint', {useValue: 'http://192.168.0.124/'})])
開發者ID:aprilsacil,項目名稱:mark4,代碼行數:30,代碼來源:app.ts

示例4: constructor

  constructor(platform:Platform) {
    this.rootPage = TabsPage;
    this.initializeApp(platform);
  }

  private initializeApp(platform:Platform) {
    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      this.hideSplashScreen();
      StatusBar.styleDefault();
      StatusBar.backgroundColorByHexString("#5e6772");
    });
  }
  hideSplashScreen() {
    if(navigator && navigator.splashscreen) {
      setTimeout(()=> {
        navigator.splashscreen.hide();
      }, 1000);
    }
  }
}

ionicBootstrap(MyApp, null, {
  tabbarPlacement: 'bottom',
  backButtonText: '',
  modalEnter: 'modal-slide-in',
  modalLeave: 'modal-slide-out'
});
開發者ID:sydeEvans,項目名稱:growth2,代碼行數:29,代碼來源:app.ts

示例5: constructor

})
export class JerryApp implements OnInit{

  private rootPage:any;

  public authUser:any;
  public isAuthUser:boolean;

  constructor(
    private platform:Platform,
    private modal: ModalController
    ) {

    platform.ready().then(() => {
      // 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();
      console.info('Platform Ready', platform);
      this.rootPage = DashboardComponent;
    });
  }

  ngOnInit(){

  }


}

ionicBootstrap(JerryApp, [Geyser, ParticleService]);
開發者ID:pubfunc,項目名稱:jerry-ionic,代碼行數:30,代碼來源:app.ts

示例6: enableProdMode

      this.locationService.refreshCurrentLocation();

      this.events.subscribe("loginSuccess", () => {
        this.rootPage = TabsPage;
      });

      // Check if existing user
      this.db.get("account").then(data => {
        if (data !== undefined) {

          //TODO Implement offline mode if there is no network connection
          this.accountService.tokenLogin(JSON.parse(data));

        } else {
          // Display intro page for new users w/c allows them to register/login
          this.rootPage = IntroPage;
        }
      },
        error => {
          console.log("DB Failure");
        }
      );
  }
}


if (!app_config.is_debug)
  enableProdMode();

ionicBootstrap(Blottr)
開發者ID:eabquina,項目名稱:blottr,代碼行數:30,代碼來源:app.ts

示例7: ionicBootstrap

      authDomain: "gadash-nirim.firebaseapp.com",
      databaseURL: "https://gadash-nirim.firebaseio.com",
      storageBucket: "gadash-nirim.appspot.com",
    };

    firebase.initializeApp(FbConfig);
    this.rootPage = LoginPage;
    firebase.auth().onAuthStateChanged((user) => {
      if (user) {
        // If there's a user take him to the home page.
        this.rootPage = HomePage;
      } else {
        // If there's no user logged in send him to the LoginPage
        this.rootPage = LoginPage;
      }
    });


    platform.ready().then(() => {
      // 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();

    });
  }
}

ionicBootstrap(MyApp, [
  provideStore({ entries })
]);
開發者ID:carmelneta,項目名稱:nirim,代碼行數:30,代碼來源:app.ts

示例8: constructor

import {StatusBar} from 'ionic-native';
import {TabsPage} from './pages/tabs/tabs';


@Component({
  template: '<ion-nav [root]="rootPage"></ion-nav>'
})
export class MyApp {

  private rootPage: any;

  constructor(private platform: Platform) {
    this.rootPage = TabsPage;

    platform.ready().then(() => {
      // 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();
    });
  }
}

//ionicBootstrap(MyApp);
ionicBootstrap(MyApp, null, {
  platforms: {
    ios: {
      statusBarPadding: true
    }
  }
});
開發者ID:letuthanhson,項目名稱:ionic,代碼行數:30,代碼來源:app.ts

示例9: constructor

})
export class MyApp {

    private rootPage: any;

    constructor(
        platform: Platform,
        recipeService : RecipeService,
        ingredientService : IngredientService,
        utilService: UtilService) {
        this.rootPage = TabsPage;

        platform.ready().then(() => {

            recipeService.initDB();
            ingredientService.initDB();
            utilService.updateView();

            // 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();
    });
    }
}

ionicBootstrap(MyApp, [
    disableDeprecatedForms(), provideForms(),
    RecipeService, IngredientService, UtilService,
    HTTP_PROVIDERS
]);
開發者ID:eliasjunior,項目名稱:weekMenu,代碼行數:30,代碼來源:app.ts

示例10: constructor

import {TabsPage} from './pages/tabs/tabs';


@Component({
  template: '<ion-nav [root]="rootPage"></ion-nav>'
})
export class MyApp {

  private rootPage: any;

  constructor(private platform: Platform) {
    this.rootPage = TabsPage;
    this.platform = platform;

    this.initializeApp();

  }
  
  initializeApp(){
    this.platform.ready().then(() => {
      // 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();
      //console.log(this.platform.platforms());
    });

  }
}

ionicBootstrap(MyApp,[JSONP_PROVIDERS]);
開發者ID:frankieali4,項目名稱:beacon-scavenger-hunt,代碼行數:30,代碼來源:app.ts


注:本文中的ionic-angular.ionicBootstrap函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。