Posts

Showing posts with the label cli

Angular Application with Angular CLI

Image
 Once we Installed Angular CLI we can check CLI version using "ng version" command in command prompt of windows or terminal in mac. Now try with "ng help" you will get a list of ng commands with its description as shown below, we have already used "ng version" from the list. Creating Application with CLI: For creating a new angular project we can use "ng new projectName" command. Open Command prompt and change the directory to the folder in which you want to create the project. See Screenshot below: when you type command "ng new todoList" it will question like routing is required so based on your required if there is multiple page and you need to route from one page to another then mark it as Yes. Once above installation is success then you can check whether your project is created or not by using command dir in windows and ls in mac. Refer below screen shot: You can see a list of files are created in your project folder. Now you have c

Installing Angular CLI

Image
 For Installing Angular CLI:  open your command prompt in administer mode and type below command "npm install -g angular/cli@13.2.5" @13.2.5 is the latest version, you can take the latest version of it. Once installed you can check it by typing "ng version"   in command prompt and below window will appear : Here you can see the CLI Version, Node Version, NPN Version and other details. Previous Topic(Install NodeJs and Visual Studio)                       Next Topic (Create Angular Application)