angular-2-beta-boilerplate icon indicating copy to clipboard operation
angular-2-beta-boilerplate copied to clipboard

app.module.ts

Open zenithtekla opened this issue 8 years ago • 1 comments

How come this boilerplate doesn't have app.module.ts? What can I do when I want to specify more imports and declarations to NgModule? The Heroes-Tour tutorial on Angular2 homepage requires adding to @NgModule.

Can I write this in boot.ts? Or where and how to put this code below properly in this angular2-beta-boilerplate repo? Does this have anything to do with different beta/production versions of Angular2?

@NgModule({
  imports: [ BrowserModule, FormsModule ],
declarations: [ AppComponent, HeroDetailComponent ],

zenithtekla avatar Oct 12 '16 18:10 zenithtekla

Don't use this boilerplate to start an Angular 2 project. It is now obsolete because Angular has gone through so many changes since this boilerplate was last updated.

The addition of NgModule is one of those changes.

RoxKilly avatar Oct 19 '16 05:10 RoxKilly