angular-2-beta-boilerplate
angular-2-beta-boilerplate copied to clipboard
app.module.ts
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.