本文整理汇总了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",
})
],