user6604655 user6604655 - 6 months ago 50
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?


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

bootstrap(MyComponent, [...]).catch(err => console.error(err));