This project was generated with Angular CLI version 17.0.6.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
- Goal: Create a basic stepper component with static steps.
- Tasks:
- Initialize a new Angular component for the stepper.
- Implement static steps (e.g., Step 1, Step 2, Step 3) using Angular templates.
- Tasks:
- Goal: Enhance the stepper to dynamically create steps based on input data
- Tasks:
- Modify the stepper to accept an array of step names as input
- Use angular template functionality to render steps dynamically
- Implement basic navigation (next, previous) between steps.
- Tasks:
- Goal: Integrate forms into the stepper and implement validation.
- Tasks:
- For each step, include a simple form with validation (e.g, required fields)
- Prevent navigation to the next step if the current step's form is invalid
- Tasks:
- Goal: Allow customization of step content using Angular's content projection
- Tasks:
- Modify the stepper to accept custom content for each step
- Buttons Previous/Next
<button type="button"
class="text-white bg-gradient-to-br from-purple-600 to-blue-500 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-blue-300 dark:focus:ring-blue-800 font-medium rounded-lg text-sm px-5 py-2.5 text-center me-2 mb-2"
> Previous
</button>
<button type="button"
class="text-white bg-gradient-to-r from-cyan-500 to-blue-500 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-cyan-300 dark:focus:ring-cyan-800 font-medium rounded-lg text-sm px-5 py-2.5 text-center me-2 mb-2"
> Next
</button>