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.

jjkavalam (2) [Avatar] Offline
#1
Specifically, following code snippet provided in Sec 2.2:

ng g s shared/product -m app.module


uses the "-m" switch.

However, from the original documentation https://github.com/angular/angular-cli/wiki/generate-service it seems as though this switch is no more supported (when generating services).

Interestingly, the switch is in fact supported when generating components, https://github.com/angular/angular-cli/wiki/generate-component.