Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.module.ts #28

Open
zenithtekla opened this issue Oct 12, 2016 · 1 comment
Open

app.module.ts #28

zenithtekla opened this issue Oct 12, 2016 · 1 comment

Comments

@zenithtekla
Copy link

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 ],
@RoxKilly
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants