1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:02:09 +02:00
tldr/pages/common/ng.md
Vitor Henrique 46a054215a
pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

660 B

ng

Create and manage 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

  • Display the version of your current Angular installation:

ng version