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


TypeScript platform.platformNativeScriptDynamic函數代碼示例

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


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

示例1: start_snippet_

// >> (hide)
function start_snippet_() {
// << (hide)
platformNativeScriptDynamic().bootstrapModule(PageNavigationAppModule);
// >> (hide)
}
開發者ID:leocaseiro,項目名稱:nativescript-angular,代碼行數:6,代碼來源:page-outlet.ts

示例2: platformNativeScriptDynamic

import { platformNativeScriptDynamic } from "nativescript-angular/platform";
import { AppModule } from "./app.module";
import * as application from "tns-core-modules/application";

platformNativeScriptDynamic().bootstrapModule(AppModule);
開發者ID:haylahi,項目名稱:mobile-app,代碼行數:5,代碼來源:main.ts

示例3: require

import {PageNavigationApp} from "./snippets/navigation/page-outlet";
import {NavigationApp} from "./snippets/navigation/router-outlet";

import { rendererTraceCategory, routerTraceCategory } from "nativescript-angular/trace";

import {BehaviorSubject} from "rxjs";

import trace = require("trace");
// trace.setCategories(rendererTraceCategory + "," + routerTraceCategory);
trace.setCategories(routerTraceCategory);
trace.enable();

// nativeScriptBootstrap(GestureComponent);
// nativeScriptBootstrap(LayoutsComponent);
// nativeScriptBootstrap(IconFontComponent);
const platform = platformNativeScriptDynamic({bootInExistingPage: true});
const root = new StackLayout();
const rootViewProvider = {provide: APP_ROOT_VIEW, useValue: root};
const singlePageHooksLog = new BehaviorSubject([]);
const singlePageHooksLogProvider = {provide: HOOKS_LOG, useValue: singlePageHooksLog};
const multiPageHooksLog = new BehaviorSubject([]);
const multiPageHooksLogProvider = {provide: HOOKS_LOG, useValue: multiPageHooksLog};
const lazyLoadHooksLog = new BehaviorSubject([]);
const lazyLoadHooksLogProvider = {provide: HOOKS_LOG, useValue: lazyLoadHooksLog};

@NgModule({
    bootstrap: [
        SinglePageMain
    ],
    declarations: [
        SinglePageMain,
開發者ID:leocaseiro,項目名稱:nativescript-angular,代碼行數:31,代碼來源:main.ts

示例4: start_snippet

// >> (hide)
function start_snippet() {
// << (hide)
platformNativeScriptDynamic().bootstrapModule(GroceriesAppModule);
// << router-bootstrap
}
開發者ID:leocaseiro,項目名稱:nativescript-angular,代碼行數:6,代碼來源:config-snippets.ts

示例5: handleError

};

class MyErrorHandler implements ErrorHandler {
    handleError(error) {
        console.log("### ErrorHandler Error: " + error.toString());
        console.log("### ErrorHandler Stack: " + error.stack);
    }
}

// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(RendererTest));
// platformNativeScriptDynamic(undefined, [customPageFactoryProvider]).bootstrapModule(makeExampleModule(RendererTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(TabViewTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(Benchmark));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(ListTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(ListTemplateSelectorTest));
platformNativeScriptDynamic().bootstrapModule(makeExampleModule(ListTestAsync));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(ImageTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(ModalTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(HttpTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(HttpClientTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(PlatfromDirectivesTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(ActionBarTest));

// router
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(RouterOutletAppComponent));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(PageRouterOutletAppComponent));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(PageRouterOutletNestedAppComponent));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(ClearHistoryAppComponent));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(LoginAppComponent));

// animations
開發者ID:NathanWalker,項目名稱:nativescript-angular,代碼行數:31,代碼來源:app.ts

示例6: platformNativeScriptDynamic

import { platformNativeScriptDynamic } from "nativescript-angular/platform";
import { AppModule } from "./app.module";

platformNativeScriptDynamic({ createFrameOnBootstrap: true }).bootstrapModule(AppModule);
開發者ID:NathanWalker,項目名稱:nativescript-angular,代碼行數:4,代碼來源:main.ts

示例7: platformNativeScriptDynamic

// this import should be first in order to load some required settings (like globals and reflect-metadata)
import { platformNativeScriptDynamic } from "nativescript-angular/platform";

import { AppModule } from "./app.module";

const platform = platformNativeScriptDynamic();
platform.bootstrapModule(AppModule);
開發者ID:NickIliev,項目名稱:NativeScript-issues,代碼行數:7,代碼來源:main.ts


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