本文整理汇总了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)
}
示例2: platformNativeScriptDynamic
import { platformNativeScriptDynamic } from "nativescript-angular/platform";
import { AppModule } from "./app.module";
import * as application from "tns-core-modules/application";
platformNativeScriptDynamic().bootstrapModule(AppModule);
示例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,
示例4: start_snippet
// >> (hide)
function start_snippet() {
// << (hide)
platformNativeScriptDynamic().bootstrapModule(GroceriesAppModule);
// << router-bootstrap
}
示例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
示例6: platformNativeScriptDynamic
import { platformNativeScriptDynamic } from "nativescript-angular/platform";
import { AppModule } from "./app.module";
platformNativeScriptDynamic({ createFrameOnBootstrap: true }).bootstrapModule(AppModule);
示例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);