简体   繁体   中英

app.module not generated my AngularCLI

I've just embarked on my new journey to learn Angular2 , I've brought a course via udemy. Everything is going well however I've noticed due to the latest release of Angular2 projects are now using a file called app.module .

When I create my new project via AngularCLI is doesn't seem to create the app.module ? Instead it creates the project via the old way without using the app.module I've searched the web assuming it may have something to do with the version of AngularCLI I'm using however nothing has come up on my search confirming this.

Which now brings me to stackoverflow to ask the question: Do I need to upgrade AngularCLI for it to generate the app.module file?

What version of angular-cli are you using?

NgModules were implemented in Angular 2 RC6, not a long time ago, so in short:

yes, you should upgrade to the newest version of angular-cli to have access to all the latest features.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM