当前位置: 首页>>代码示例>>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;未经允许,请勿转载。