To create your first Angular application, follow these steps:
1. Open a command prompt or terminal.
2. Navigate to the directory where you want to create your Angular application.
3. Run the following command to create a new Angular project:
--> ng new my-first-app
This command creates a new Angular project named "my-first-app" in a folder with the same name.
4. After the project is created, navigate into the project directory in VS CODE:
-->cd my-first-app
Start the development server by running the following command:
-->npm run build
This command compiles the application and starts the development server. You should see output indicating that the server is running.
Open your web browser and visit http://localhost:4200/. You should see your Angular application running.if port is already used the give us to another .
Congratulations! You have successfully created and launched your first Angular application. You can now start exploring the project structure and making changes to build your application further.
0 Comments