The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

vkelman (54) [Avatar] Offline
#1
I suppose like CLI syntax was changed in Angular 6?

In particular "ng g c product -is -it -spec false" raises an error.

ng g c --help shows schematics different from what is described in a sidebar.

By looking at help try & error I found command which creates inline template and style sheets and turns off generating test (?) file product.component.spec.ts:

ng g c product -s -t --spec false


Yakov Fain (219) [Avatar] Offline
#2
The main change with options in CLI 6 is that it requires two dashes in some cases where it used to allow one dash.
So this works fine: ng g c product -is -it --spec false

The same applies to --prod and --aot