X Tutup
Skip to content

Redo bootstrapping logic #1594

@mhevery

Description

@mhevery
ng
  .platform([Cookies])
  .createApp([bind(ExceptionHandler).toClass(MyExceptionHandler])
  .loadComponent(MyComponet, [bind(MySerivice].toClass(MyService)]


class Platform {
  dispose()
}

class Application {
  componentRef:ComponentRef;
  dispose();
  whenReady() {
  }
}

class ComponentRef {
  dispose()
}

bootstrap(Type, cmpBind, appBind, pltformBind):Application {
  var platform = Platform.create(pltformBind);
  var app = platform.createApp(appBind);
  var componentRef = app.loadComponent(ComponentRef);
  return app;
}


bootstrap(MyApp).whenReady((rootComponent) {
  rootComponent.init();
});

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup