mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 21:42:08 +02:00

Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Co-authored-by: Seth Falco <seth@falco.fun> Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
36 lines
695 B
Markdown
36 lines
695 B
Markdown
# ng
|
|
|
|
> Command-line Interface (CLI) for creating and managing Angular applications.
|
|
> More information: <https://angular.io/cli>.
|
|
|
|
- Create a new Angular application inside a directory:
|
|
|
|
`ng new {{project_name}}`
|
|
|
|
- Add a new component to one's application:
|
|
|
|
`ng generate component {{component_name}}`
|
|
|
|
- Add a new class to one's application:
|
|
|
|
`ng generate class {{class_name}}`
|
|
|
|
- Add a new directive to one's application:
|
|
|
|
`ng generate directive {{directive_name}}`
|
|
|
|
- Run the application with the following command in its root directory:
|
|
|
|
`ng serve`
|
|
|
|
- Build the application:
|
|
|
|
`ng build`
|
|
|
|
- Run unit tests:
|
|
|
|
`ng test`
|
|
|
|
- Check the version of your current Angular installation:
|
|
|
|
`ng version`
|