How to use the @nativescript/angular/platform.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 Akylas / nativescript-material-components / demo-ng / src / main.ts View on Github external
// 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/app.module';

// A traditional NativeScript application starts by initializing global objects,
// setting up global CSS rules, creating, and navigating to the main page.
// Angular applications need to take care of their own initialization:
// modules, components, directives, routes, DI providers.
// A NativeScript Angular app needs to make both paradigms work together,
// so we provide a wrapper platform object, platformNativeScriptDynamic,
// that sets up a NativeScript application and can bootstrap the Angular framework.
platformNativeScriptDynamic().bootstrapModule(AppModule);
github Notalib / nativescript-accessibility-ext / demo / src / main.ts View on Github external
import { platformNativeScriptDynamic } from '@nativescript/angular/platform';
import { AppModule } from './app.module';

platformNativeScriptDynamic().bootstrapModule(AppModule);