Awesome
Angular Debugging Challenge
Overview
Welcome to the Angular Debugging Challenge! This repository contains a basic Angular application representing a simple to-do list. The application has a few intentional bugs that you are required to identify and fix. The exercise tests your understanding of Angular fundamentals, including components, services, data binding, and debugging skills.
Getting Started
Prerequisites
Before you begin, make sure you have the following installed:
- Node.js (https://nodejs.org/)
- Angular CLI (https://angular.io/cli)
Installation
- Clone the repository: git clone https://github.com/ppsdang/angular-debugging-challenge
- Navigate to the project directory: cd angular-debugging-challenge
- Install the necessary packages: npm install
Running the Application
- Start the Angular application: ng serve
- Open your browser and navigate to http://localhost:4200/.
Your Task
Your task is to debug and fix the issues in the application. The application is intended to allow users to add tasks to a to-do list and display them. Specifically, you need to:
- Ensure that the form input properly binds to the component property.
- Correctly update the list of tasks when a new task is added.
- Prevent empty or whitespace-only task entries.
Tips
- Carefully read through the code in each file. The issues could be in any of the following files:
app.module.ts
app.component.ts
andapp.component.html
todo/todo.component.ts
,todo/todo.component.html
, andtodo/todo.component.css
todo.service.ts
- Pay attention to Angular concepts like modules, components, services, data binding, and form handling.
- Use browser developer tools and Angular CLI tools to help identify and fix issues.