本文整理匯總了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));