1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 22:44:56 +02:00
tldr/pages/common/ng.md
Marco Bonelli 2599a6de48 Refactor: change "folder" to "directory" where needed.
This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
2019-02-13 20:51:04 +05:30

35 lines
649 B
Markdown

# ng
> Command Line Interface (CLI) for creating and managing Angular applications.
- 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`