Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// nativescript
import { platformNativeScriptDynamic } from 'nativescript-angular';
// app
import { NativeModule } from './native.module';
platformNativeScriptDynamic().bootstrapModule(NativeModule);
})
class ExampleModuleForComponent { }
return ExampleModuleForComponent;
}
const customPageFactoryProvider = {
provide: PAGE_FACTORY,
useValue: (opts: PageFactoryOptions) => {
const page = new Page();
page.backgroundColor = opts.isModal ? new Color("lightblue") : new Color("lightgreen");
return page;
}
};
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(PlatfromDirectivesTest));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(ActionBarTest));
// router
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(RouterOutletAppComponent));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(PageRouterOutletAppComponent));
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(PageRouterOutletNestedAppComponent));
imports: [
NativeScriptModule,
NativeScriptFormsModule,
FormlyModule.forRoot(),
FormlyBootstrapModule
],
declarations: [
DemoComponent,
],
bootstrap: [
DemoComponent
],
})
class DemoModule { }
platformNativeScriptDynamic().bootstrapModule(DemoModule);
@NgModule({
imports: [
NativeScriptModule,
TNSYourPluginModule
],
declarations: [
DemoComponent,
],
bootstrap: [
DemoComponent
],
})
class DemoModule { }
platformNativeScriptDynamic().bootstrapModule(DemoModule);
],
exports: [
SIDEDRAWER_DIRECTIVES,
AUX_COMPONENTS,
NativeScriptModule,
NativeScriptFormsModule,
NativeScriptHttpModule,
NativeScriptRouterModule,
],
providers: [
DrawerService,
]
})
class AppModule { }
platformNativeScriptDynamic().bootstrapModule(AppModule);
EffectsModule.run(PlaylistEffects),
EffectsModule.run(ProgressEffects),
EffectsModule.run(SharedlistEffects),
EffectsModule.run(ShoutoutEffects),
ComponentsModule,
NativeScriptRouterModule.forRoot(routes)
],
declarations: [
AppComponent,
ENTRY_COMPONENTS
],
bootstrap: [AppComponent]
})
export class NativeModule { }
platformNativeScriptDynamic().bootstrapModule(NativeModule);