Getting Started
Project creation
Open a terminal and run the following command to create an Angular application:
Open the project
πInstructions
- open Visual Studio Code.
- Click on the
File
menu and selectOpen Folder
. - Navigate to the
practical-course
folder and click on theSelect Folder
button.
Running the application
Angular CLI provides a command to serve the application locally.
π Instructions
- Open a terminal in Visual Studio Code.
- Type the following command to start the application:
- Open your browser and navigate to
http://localhost:4200
. - You should see the following default boilerplate page:
Hot reload
Hot reload is a feature that allows you to see the changes you make in your code without having to manually refresh the page.
π Instructions
- Open the
src/app/app.component.html
file. - Replace the full content of the file with the following code:
- Go back to your browser to see the following page: