I've noticed a strange behavior with the generator in Angular CLI tools that adds an extra slash character for modules. For example, when running
ng generate component visual
a line like this is added to the app.module.ts file
import { VisualComponent } from './visual/visual.component';
However, if I run
ng generate module visual --flat --module=app
as mentioned on the official Angular site, the syntax is slightly different
import { AppRoutingModule } from './/app-routing.module';
I can't seem to figure out the purpose of the extra slash and whether it's a mistake on my end or a bug in the generator that may be fixed in a future update.