当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript core.coreBootstrap函数代码示例

本文整理汇总了TypeScript中@angular/core.coreBootstrap函数的典型用法代码示例。如果您正苦于以下问题:TypeScript coreBootstrap函数的具体用法?TypeScript coreBootstrap怎么用?TypeScript coreBootstrap使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了coreBootstrap函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: browserPlatform

import {ReflectiveInjector, coreBootstrap} from '@angular/core';
import {BROWSER_APP_PROVIDERS, browserPlatform} from '@angular/platform-browser';

import {Basic} from './basic';
import {BasicNgFactory} from './basic.ngfactory';

const appInjector =
    ReflectiveInjector.resolveAndCreate(BROWSER_APP_PROVIDERS, browserPlatform().injector);
coreBootstrap(BasicNgFactory, appInjector);
开发者ID:BharatBhatiya,项目名称:test,代码行数:9,代码来源:bootstrap.ts

示例2: browserPlatform

import {coreBootstrap, ReflectiveInjector} from '@angular/core';
import {browserPlatform, BROWSER_APP_STATIC_PROVIDERS} from '@angular/platform-browser';
import {AppNgFactory} from './app.ngfactory';
import {App} from './app';

const appInjector =
    ReflectiveInjector.resolveAndCreate(BROWSER_APP_STATIC_PROVIDERS, browserPlatform().injector);
coreBootstrap(appInjector, AppNgFactory);
开发者ID:TheLarkInn,项目名称:ng2-compiler-test2,代码行数:8,代码来源:main-static.ts

示例3: ionicProviders

import {ComponentResolver, ReflectiveInjector, coreBootstrap} from '@angular/core';
import {BROWSER_APP_PROVIDERS, browserPlatform} from '@angular/platform-browser';
import {ionicProviders, ionicPostBootstrap} from 'ionic-angular';

import {AppNgFactory} from './app/app.ngfactory';

const providers = ionicProviders();
const appInjector = ReflectiveInjector.resolveAndCreate([BROWSER_APP_PROVIDERS, []], browserPlatform().injector);

const ngComponentRef = coreBootstrap(AppNgFactory, appInjector);
//ionicPostBootstrap(ngComponentRef);

开发者ID:jthoms1,项目名称:tree-shake-ionic2,代码行数:11,代码来源:main.ts

示例4: browserPlatform

import {coreBootstrap, ReflectiveInjector} from '@angular/core';
import {browserPlatform, BROWSER_APP_COMMON_PROVIDERS} from '@angular/platform-browser';
import {BasicNgFactory} from './basic.ngfactory';
import {Basic} from './basic';

const appInjector =
    ReflectiveInjector
    .resolveAndCreate(BROWSER_APP_COMMON_PROVIDERS, browserPlatform().injector);
coreBootstrap(appInjector, BasicNgFactory);
开发者ID:jeffbcross,项目名称:closure-compiler-angular-bundling,代码行数:9,代码来源:bootstrap.ts

示例5: bootstrap

 return function bootstrap(componentFactory) {
   return coreBootstrap(componentFactory, appInjector);
 }
开发者ID:StephenFluin,项目名称:compiler-bundling-demo,代码行数:3,代码来源:bootstrap-static.ts


注:本文中的@angular/core.coreBootstrap函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。