mschwarzmueller / angular-2-beta-boilerplate

A basic boilerplate to start an Angular 2 (Beta) App. Includes Gulpfile to compile Typescript and SCSS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

app.module.ts

zenithtekla opened this issue · comments

commented

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 ],

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.