Angular-Cli camelCase name

Viewed 6123

It seems that when I used angular cli to generate components,services etc.by this command and name of component

ng g component myApp

It generate component folder and other files such as

my-app.component.ts

instead myapp.component.ts

My question is,Is there any command to generate components,services etc. with camelCase name.

I research for it,but nothing works.

1 Answers

Angular Style Guide explicitly says to use my-app.component.ts for file names.

  • dash-case (or "kebab-case"): descriptive part of file names, component selectors

Reference: https://angular.io/guide/glossary

Related