How to use the nativescript-angular.platformNativeScriptDynamic function in nativescript-angular

To help you get started, we’ve selected a few nativescript-angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jlooper / angular-starter / nativescript / app / app.ts View on Github external
// nativescript
import { platformNativeScriptDynamic } from 'nativescript-angular';

// app
import { NativeModule } from './native.module';

platformNativeScriptDynamic().bootstrapModule(NativeModule);
github NativeScript / nativescript-angular / ng-sample / app / app.ts View on Github external
})
    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));
github formly-js / ng-formly-nativescript / src / app / main.ts View on Github external
imports: [
      NativeScriptModule,
      NativeScriptFormsModule,
      FormlyModule.forRoot(),
      FormlyBootstrapModule
    ],
    declarations: [
      DemoComponent,      
    ],
    bootstrap: [
      DemoComponent
    ],
})
class DemoModule { }

platformNativeScriptDynamic().bootstrapModule(DemoModule);
github NathanWalker / nativescript-ngx-plugin-seed / src / app / main.ts View on Github external
@NgModule({
    imports: [
      NativeScriptModule,
      TNSYourPluginModule
    ],
    declarations: [
      DemoComponent,      
    ],
    bootstrap: [
      DemoComponent
    ],
})
class DemoModule { }

platformNativeScriptDynamic().bootstrapModule(DemoModule);
github greenstevester / nativescript-sidedrawer-example / app / app.module.ts View on Github external
],
    exports: [
        SIDEDRAWER_DIRECTIVES,
        AUX_COMPONENTS,
        NativeScriptModule,
        NativeScriptFormsModule,
        NativeScriptHttpModule,
        NativeScriptRouterModule,
    ],
    providers: [
        DrawerService,
    ]
})
class AppModule { }

platformNativeScriptDynamic().bootstrapModule(AppModule);
github NathanWalker / ShoutOutPlay / app / main.ts View on Github external
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);