Forrest logo
back to context overview

ng

List of commands for ng:

  • ng:tldr:06eaa ng: Check the version of your current Angular installation.
    $ ng version
    try on your machine
    explain this command
  • ng:tldr:17ccc ng: Create a new Angular application inside a directory.
    $ ng new ${project_name}
    try on your machine
    explain this command
  • ng:tldr:31e0f ng: Run the application with the following command in its root directory.
    $ ng serve
    try on your machine
    explain this command
  • ng:tldr:45d5d ng: Run unit tests.
    $ ng test
    try on your machine
    explain this command
  • ng:tldr:613dd ng: Add a new component to one's application.
    $ ng generate component ${component_name}
    try on your machine
    explain this command
  • ng:tldr:a84b5 ng: Build the application.
    $ ng build
    try on your machine
    explain this command
  • ng:tldr:aa76f ng: Add a new directive to one's application.
    $ ng generate directive ${directive_name}
    try on your machine
    explain this command
  • ng:tldr:e490a ng: Add a new class to one's application.
    $ ng generate class ${class_name}
    try on your machine
    explain this command
back to context overview