本文整理汇总了TypeScript中@angular/platform-browser.platformBrowser函数的典型用法代码示例。如果您正苦于以下问题:TypeScript platformBrowser函数的具体用法?TypeScript platformBrowser怎么用?TypeScript platformBrowser使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了platformBrowser函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: enableProdMode
import { platformBrowser } from '@angular/platform-browser';
import { enableProdMode } from '@angular/core';
import { AppModuleNgFactory } from '../../../temp/app/calendar/hideothermonthdays/app.module.ngfactory';
enableProdMode();
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
示例2: platformBrowser
(extraProviders: Provider[]) =>
platformBrowser(extraProviders).bootstrapModuleFactory(moduleFactoryOrBootstrapFn);
示例3: main
export function main(): Promise<any> {
return platformBrowser()
.bootstrapModuleFactory(AppModuleNgFactory)
.then(decorateModuleRef)
.catch((err) => console.error(err));
}
示例4: enableProdMode
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {enableProdMode} from '@angular/core';
import {platformBrowser} from '@angular/platform-browser';
import {AppModuleNgFactory} from './app.ngfactory';
import {init} from './init';
enableProdMode();
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory).then(init);
示例5: ProdConfig
import { platformBrowser } from '@angular/platform-browser';
import { ProdConfig } from './blocks/config/prod.config';
import { GatewayAppModuleNgFactory } from '../../../../target/aot/src/main/webapp/app/app.module.ngfactory';
ProdConfig();
platformBrowser().bootstrapModuleFactory(GatewayAppModuleNgFactory)
.then((success) => console.log(`Application started`))
.catch((err) => console.error(err));
示例6: platformBrowser
() => platformBrowser().bootstrapModuleFactory(GraphDemoModuleNgFactory)
示例7: function
window['doBootstrap'] = function() {
platformBrowser().bootstrapModuleFactory(TransferStateModuleNgFactory);
};
示例8: ProdConfig
import { platformBrowser } from '@angular/platform-browser';
import { ProdConfig } from './blocks/config/prod.config';
import { JobroomAppModuleNgFactory } from '../../../../build/aot/src/main/webapp/app/app.module.ngfactory';
ProdConfig();
platformBrowser().bootstrapModuleFactory(JobroomAppModuleNgFactory)
.then((success) => console.log(`Application started`))
.catch((err) => console.error(err));
示例9: enableProdMode
document.addEventListener("DOMContentLoaded", () => {
enableProdMode();
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
});
示例10: ProdConfig
import { platformBrowser } from '@angular/platform-browser';
import { ProdConfig } from './blocks/config/prod.config';
import { AuctionPlatformAppModuleNgFactory } from '../../../../target/aot/src/main/webapp/app/app.module.ngfactory';
ProdConfig();
platformBrowser().bootstrapModuleFactory(AuctionPlatformAppModuleNgFactory)
.then((success) => console.log(`Application started`))
.catch((err) => console.error(err));