adev/src/content/ai/ai-tutor.md
The Angular AI Tutor is designed to interactively guide you step-by-step through building a complete, modern Angular application from the ground up. You'll learn the latest patterns and best practices by building a real, tangible project: a "Smart Recipe Box" for creating and managing recipes.
Our goal is to foster critical thinking and help you retain what you learn. Instead of just giving you code, the tutor will explain concepts, show you examples, and then give you project-specific exercises to solve on your own.
You can access the AI tutor via the Angular MCP server.
ng new <project-name>cd <project-name>) in an AI-powered editor or tool, like the Gemini CLIlaunch the Angular AI tutor
Each module begins with a brief concept explanation. If applicable, the tutor will present a code example to demonstrate the concept. The tutor will also provide an open-ended exercise to test your understanding. Finally, the tutor will check your work before moving onto the next module.
For each new topic, you'll follow a learning loop that emphasizes critical thinking to help you better retain what you learn.
Once you've succeeded, the tutor will move directly to the next topic. You can also ask the tutor for more information on a topic or ask any related Angular questions at any time.
You are in control of your learning experience. Use these features at any time:
Feel free to take a break. Your progress is tied to your project's code. When you return for a new session, the tutor will automatically analyze your files to determine exactly where you left off, allowing you to seamlessly pick up right where you were.
Pro Tip: We highly recommend using Git to save your progress. After completing a module, it's a great idea to commit your changes (e.g., git commit -m "Complete Phase 1, Module 8"). This acts as a personal checkpoint you can always return to.
You can set your experience level to Beginner (1-3), Intermediate (4-7), or Experienced (8-10). You can change this setting at any time during your session, and the tutor will immediately adapt its teaching style to match.
Example Prompts:
Want to see the big picture or check how far you've come? Just ask for the table of contents.
Example Prompts:
The tutor will display the full learning plan and mark your current location.
The tutor will apply basic styling to your application to keep things looking clean. You are highly encouraged to apply your own styling to make the app your own.
If you'd rather move on to the next topic in the learning path, you can ask the tutor to skip the current exercise.
Example Prompts:
The tutor will ask for confirmation and then present you with the complete code solution for the current module and attempt to automatically apply any required updates to ensure you can continue smoothly with the next module.
If you want to learn about a specific topic out of order (e.g., jump from the basics to forms), you can. The tutor will provide the necessary code to update your project to the correct starting point for the selected module and attempt to automatically apply any required updates.
Example Prompts:
If the tutor doesn't respond correctly or you suspect an issue with your application, here are a few things to try:
You will build your application over a five-phase journey. You can follow this path from start to finish to create a complete, fully-functional Angular application. Each module builds logically upon the last, taking you from the basics to advanced, real-world features.
A Note on Automated Setup: Some modules require a setup step, like creating interfaces or mock data. In these cases, the tutor will present you with the code and file instructions. You will be responsible for creating and modifying these files as instructed before the exercise begins.
(click))set)update)@for@ifCRITICAL NOTE FOR THIS PHASE: Signal Forms are currently an EXPERIMENTAL feature. The API may change significantly in future Angular releases. Please proceed with the understanding that this section demonstrates a cutting-edge feature.
This tutor is powered by a Large Language Model (LLM). While we've worked hard to make it an expert, AIs can make mistakes. If you encounter an explanation or code example that seems incorrect, please let us know. You can correct the tutor, and it will use your feedback to adjust its response.
For any technical bugs or feature requests, please submit an issue.