mirror of https://github.com/CrimsonTome/tldr.git
ng: add page (#2579)
parent
08550e1d43
commit
066a4ef5c4
|
@ -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`
|
Loading…
Reference in New Issue