Create a new Angular project: Once Angular CLI is installed, you can use it to create a new project. Run the following command:
ng new todo-app
This will create a new directory named "todo-app" and generate a basic Angular project structure inside it.
Navigate to the project directory: Change your current directory to the newly created project directory:
cd my-angular-app
Serve the application: Use the Angular CLI to serve the application locally. This will compile the code and start a development server. Run the following command:
ng serve
The application will be accessible at http://localhost:4200/.
Verify the setup: Open a web browser and navigate to http://localhost:4200/. You should see the default Angular app running successfully.
Well done! You made your first Angular app. You can now begin building your Angular application by modifying the files in the project directory.
Top comments (0)