當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript platform-browser.platformBrowser函數代碼示例

本文整理匯總了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);
開發者ID:UCF,項目名稱:IKM-APIM,代碼行數:6,代碼來源:main.ts

示例2: platformBrowser

 (extraProviders: Provider[]) =>
     platformBrowser(extraProviders).bootstrapModuleFactory(moduleFactoryOrBootstrapFn);
開發者ID:cooperka,項目名稱:angular,代碼行數:2,代碼來源:downgrade_module.ts

示例3: main

export function main(): Promise<any> {
  return platformBrowser()
    .bootstrapModuleFactory(AppModuleNgFactory)
    .then(decorateModuleRef)
    .catch((err) => console.error(err));
}
開發者ID:dadall,項目名稱:PeerTube,代碼行數:6,代碼來源:main.browser.aot.ts

示例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);
開發者ID:AlmogShaul,項目名稱:angular,代碼行數:16,代碼來源:index_aot.ts

示例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));
開發者ID:cfaddict,項目名稱:jhipster-course,代碼行數:9,代碼來源:app.main-aot.ts

示例6: platformBrowser

 () => platformBrowser().bootstrapModuleFactory(GraphDemoModuleNgFactory)
開發者ID:giuleon,項目名稱:spfx-hello-world,代碼行數:1,代碼來源:index.ts

示例7: function

window['doBootstrap'] = function() {
  platformBrowser().bootstrapModuleFactory(TransferStateModuleNgFactory);
};
開發者ID:AnthonyPAlicea,項目名稱:angular,代碼行數:3,代碼來源:client.ts

示例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));
開發者ID:alv-ch,項目名稱:job-room,代碼行數:9,代碼來源:app.main-aot.ts

示例9: enableProdMode

document.addEventListener("DOMContentLoaded", () => {
    enableProdMode();
    platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
});
開發者ID:adamfitzpatrick,項目名稱:raging-goblin,代碼行數:4,代碼來源:app.aot.ts

示例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));
開發者ID:dguzowski,項目名稱:auction-app,代碼行數:9,代碼來源:app.main-aot.ts


注:本文中的@angular/platform-browser.platformBrowser函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。