Steps for Angular JS project creation

 Install Angular js from command line:

C:\>npm install -g @angular/cli (will add the necessary packages)
----------------------------------------------------------------------------------------------
Steps to create and run an Angular js project using Visual Studio
----------------------------------------------------------------------------------------------
Create a project using command line:
C:\>ng new TaskManager --no-standalone --routing --ssr=false
Output:
CREATE TaskManager/angular.json (2594 bytes)
CREATE TaskManager/package.json (1107 bytes)
CREATE TaskManager/README.md (1533 bytes)
CREATE TaskManager/tsconfig.json (1026 bytes)
CREATE TaskManager/.editorconfig (331 bytes)
CREATE TaskManager/.gitignore (629 bytes)
CREATE TaskManager/tsconfig.app.json (444 bytes)
CREATE TaskManager/tsconfig.spec.json (422 bytes)
CREATE TaskManager/.vscode/extensions.json (134 bytes)
CREATE TaskManager/.vscode/launch.json (490 bytes)
CREATE TaskManager/.vscode/tasks.json (980 bytes)
CREATE TaskManager/src/main.ts (205 bytes)
CREATE TaskManager/src/index.html (310 bytes)
CREATE TaskManager/src/styles.css (81 bytes)
CREATE TaskManager/src/app/app-routing-module.ts (255 bytes)
CREATE TaskManager/src/app/app-module.ts (527 bytes)
CREATE TaskManager/src/app/app.spec.ts (944 bytes)
CREATE TaskManager/src/app/app.ts (250 bytes)
CREATE TaskManager/src/app/app.css (0 bytes)
CREATE TaskManager/src/app/app.html (20464 bytes)
CREATE TaskManager/public/favicon.ico (15086 bytes)
√ Packages installed successfully.
====================================================
Run the below commands from VS
====================================================
C:\>ng serve
Initial chunk files | Names         | Raw size
main.js             | main          | 12.83 kB |
styles.css          | styles        | 95 bytes |

                    | Initial total | 12.92 kB

Application bundle generation complete. [3.305 seconds]

Watch mode enabled. Watching for file changes...
NOTE: Raw file sizes do not reflect development server per-request transformations.
  ➜  Local:   http://localhost:4200/
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
C:\>ng generate component task-list (component generation)
CREATE src/app/task-list/task-list.spec.ts (571 bytes)
CREATE src/app/task-list/task-list.ts (213 bytes)
CREATE src/app/task-list/task-list.css (0 bytes)
CREATE src/app/task-list/task-list.html (25 bytes)
UPDATE src/app/app-module.ts (593 bytes)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
C:\>ng generate service task (service generation)
CREATE src/app/task.spec.ts (327 bytes)
CREATE src/app/task.ts (116 bytes)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Sample screenshot from Visual Studio:




















Browser snapshot for the application built:



Popular posts from this blog

Connecting Claude to Pega Infinity 25.1.3 via MCP — Step-by-Step

itextpdf API to generate PDF doc from an image file using Pega PE

Understanding of Hugging Face platform for AI/ML platform