user6604655 user6604655 - 1 year ago 126
AngularJS Question

purpose of app.component.ts (AppComponent) in ng2?

Is an AppComponent class required for ng2 apps? Ng2 is component-driven but I was wondering if a component specifically named AppComponent is required. Is ng2 specifically wired up to start its flow in a class named AppComponent?

Answer Source

you can change the name to MyComponent and use it while bootstrap

bootstrap(MyComponent, [...]).catch(err => console.error(err));
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download