-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [] feature request
Versions.
@angular/cli: 1.1.0
node: 6.9.4
os: win32 x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.1.0
@angular/compiler-cli: 4.1.3
@angular/language-service: 4.1.3
Repro steps.
- I simple started a Project with
ng new bar --routing
- Then i want to generate a submodule
ng g module foo --routing -m=app.modules
The log given by the failure.
Output:
create src\app\foo2\foo-routing.module.ts create src\app\foo2\foo.module.ts update src\app\app.module.ts
- app.module.ts:
@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, AppRoutingModule, FooRoutingModule ], providers: [], bootstrap: [AppComponent] })
Desired functionality.
FooModule should be imported!