当前位置: 首页>>代码示例>>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;未经允许,请勿转载。