Angular Cli Create Component In Folder Code Example


Example 1: ng cli generate component

ng g c componentName

Example 2: generate component angular without folder

Angular:   Add --flat flag.  ng g c yourcomponentname --flat   --flat=true|false  When true, creates the new files at the top level of the current project.  Default: false

Example 3: auto generate component angular

ng g component [directory-where-you-want-to-save-the-component]/[new-component-name]  ng generate component [directory-where-you-want-to-save-the-component]/[new-component-name]

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?