本文整理匯總了TypeScript中@angular/platform-browser-dynamic.browserDynamicPlatform函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript browserDynamicPlatform函數的具體用法?TypeScript browserDynamicPlatform怎麽用?TypeScript browserDynamicPlatform使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了browserDynamicPlatform函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: browserDynamicPlatform
// #docregion
import { browserDynamicPlatform } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
browserDynamicPlatform().bootstrapModule(AppModule);
示例2: browserDynamicPlatform
import { LabsApplicationModule } from './app';
import { browserDynamicPlatform } from '@angular/platform-browser-dynamic';
browserDynamicPlatform().bootstrapModule(LabsApplicationModule)
.catch((error) => console.log('Error bootstrapping App', error));
示例3: enableProdMode
import { disableDeprecatedForms, provideForms } from '@angular/forms';
//import { } from '@angular/forms';
import { ROUTER_DIRECTIVES, provideRouter } from '@angular/router';
import { routes } from './app/routes';
import { FIREBASE_PROVIDERS, defaultFirebase } from 'angularfire2';
if (environment.production) {
enableProdMode();
}
// TODO platformBrowserDynamic()
bootstrapModule(MyAppModule, browserDynamicPlatform());
/*
bootstrap(AmesAppComponent, {
directives: [ROUTER_DIRECTIVES],
pipes: [],
providers: [
provideForms(),
provideRouter(routes),
FIREBASE_PROVIDERS,
defaultFirebase({
apiKey: "AIzaSyCTOFGccvaEedz1Jykckni5T-WP7XixS_o",
authDomain: "project-4800661445983438923.firebaseapp.com",
databaseURL: "https://project-4800661445983438923.firebaseio.com/",
storageBucket: "project-4800661445983438923.appspot.com",
})
],