Activity #6 Getting Started with Angular
Activity #6 Getting Started with Angular
Step 1: Install Node JS
Download the NodeJS LTS From the official website and install it to your machine
Step 2: Install Angular CLI
Install the angular cli using "npm install -g @angular/cli"
- This command installs the Angular CLI globally on your system. The Angular CLI is a command-line interface tool that helps you manage Angular projects, generate components, and streamline development tasks.
Step 3: Create new Angular project
Create new angular project, name it to your liking
"ng new my-angular-app"
-This command generates a new Angular project called my-angular-app
. The CLI will ask a few setup questions (e.g., whether to include Angular routing, which stylesheet format to use). It creates a project directory with the necessary Angular files, configuration, and a basic app structure.
Step 4: Run the angular app
I used ng serve to run the Angular app
- The ng serve
command compiles the Angular project and starts a local development server. By default, it serves the application at http://localhost:4200
. It also enables live reloading, so any changes made to the code will automatically reflect in the browser.
OUTPUT