Initial Angular Basic Comands

The initial Angular how to points to remember.

How to create new workspace in angular ?

*** angular project with folder / project name nameofproject

ng new nameofproject

this will be done after installing node in your system , and in command prompt(CMD ) getting to the folder where you want to install angular.

How to start angular project ?

*** component for a specific part work

go to CMD editor , type the path where file exists and type command

ng serve

** like c:/abc/nameofproject its the path now you will write ng serve.

How to create new component in angular ?

*** component for a specific part work

ng generate component thename


ng g c thename


ng g component thename

** thename here is any name you want the component name to be made.
if within a folder the type ng g c foldername/ cname

Leave a Reply

Your email address will not be published. Required fields are marked *

five + twenty =