snippetbashTip
ng — Create and manage Angular applications. More information: <https://angular.dev/cli>.
Viewed 0 times
angularcreatecommandandclimanageapplicationsng
Problem
How to use the
ng command: Create and manage Angular applications. More information: <https://angular.dev/cli>.Solution
ng — Create and manage Angular applications. More information: <https://angular.dev/cli>.Create a new Angular application inside a directory:
ng {{[n|new]}} {{project_name}}Compile the application and start a local development server:
ng {{[s|serve]}}Create a new component:
ng {{[g|generate]}} {{[c|component]}} {{component_name}}Build an Angular application or library:
ng {{[b|build]}}Run unit tests:
ng {{[t|test]}}Add a package to the current project:
ng add {{package}}Update workspace dependencies:
ng updateDisplay version:
ng {{[v|version]}}Code Snippets
Create a new Angular application inside a directory
ng {{[n|new]}} {{project_name}}Compile the application and start a local development server
ng {{[s|serve]}}Create a new component
ng {{[g|generate]}} {{[c|component]}} {{component_name}}Build an Angular application or library
ng {{[b|build]}}Run unit tests
ng {{[t|test]}}Context
tldr-pages: common/ng
Revisions (0)
No revisions yet.