Complete the code to generate a new Angular service using the CLI.
ng generate [1] my-serviceThe Angular CLI command ng generate service creates a new service.
Complete the command to create a service with the CLI and skip the test file generation.
ng generate service my-service [1]The --skip-tests flag tells the CLI not to create the test file.
Fix the error in the command to generate a service named 'data' inside a folder 'shared'.
ng generate service [1]/dataThe correct folder path is 'shared/data'. Do not add trailing slashes or leading slashes in the argument.
Fill in the blanks to generate a service named 'auth' in the 'core' folder and make it provided in root.
ng generate service [1]/[2] --[3]
The service path is 'core/auth'. The flag --providedIn=root makes the service available app-wide.
Fill all three blanks to generate a service named 'logger' in the 'utils' folder, skip tests, and specify flat structure.
ng generate service [1]/[2] --[3] --skip-tests
The service path is 'utils/logger'. The --flat flag creates the service without a folder. The --skip-tests flag skips test files.