From 066a4ef5c489312c9117797aed61159bc5c35c19 Mon Sep 17 00:00:00 2001 From: Yasin Tatar Date: Wed, 21 Nov 2018 10:26:10 +0100 Subject: [PATCH] ng: add page (#2579) --- pages/common/ng.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pages/common/ng.md diff --git a/pages/common/ng.md b/pages/common/ng.md new file mode 100644 index 0000000000..a222db7587 --- /dev/null +++ b/pages/common/ng.md @@ -0,0 +1,35 @@ +# ng + +> Command Line Interface (CLI) for creating and managing Angular applications. + +- Create a new Angular application inside a folder: + +`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`