fix(bootstrap): swap coreBootstrap() and coreLoadAndBootstrap() arguments

This commit is contained in:
Victor Berchet
2016-05-20 11:18:08 -07:00
parent 3ff20cd7e3
commit f95a604b59
10 changed files with 17 additions and 18 deletions

View File

@ -25,7 +25,6 @@ import {
Component,
ReflectiveInjector,
coreLoadAndBootstrap,
coreBootstrap,
PlatformRef,
createPlatform,
disposePlatform,
@ -114,8 +113,8 @@ export function main() {
}, 1);
var app = createApplication(
[{provide: APP_INITIALIZER, useValue: () => completer.promise, multi: true}]);
coreLoadAndBootstrap(app.injector, MyComp6)
.then((compRef) => {
coreLoadAndBootstrap(MyComp6, app.injector)
.then(_ => {
expect(initializerDone).toBe(true);
async.done();
});