angular-cn/modules/@angular/compiler-cli/integrationtest/src/bootstrap.ts

10 lines
386 B
TypeScript
Raw Normal View History

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 =
2016-05-20 19:11:49 -04:00
ReflectiveInjector.resolveAndCreate(BROWSER_APP_PROVIDERS, browserPlatform().injector);
coreBootstrap(BasicNgFactory, appInjector);