This week, we will make progress with forms topics.
Highlights from this week’s topics:
Last week we were introduced to Angular template-driven forms. It’s time to learn more.
Remember our previous coverage of
HTML Form patterns.
The course’s GitHub repo has a nice code example that covers the typical CRUD tasks.
Then, we’ll learn some techniques to improve the interaction experience users have with forms. And, we’ll introduce data validation techniques. These topics are covered in this document:
Introduction to Angular template-driven forms validation
Also this week, continue working on Assignment 2.
Sadly, the specs are not yet finished. Use the following to guide you as you do your work.
Get data from the Week 8 folder.
Import both “students” and “courses” to your MongoDB Atlas database (as new collections).
Make sure that you can view the data (the documents in the collections) with any of these viewers:
Make a new web API, or prepare to add on to your Assignment 1 web API.
Add functionality to your web API that will deliver from the new “students” and “courses” database collections:
We have recently added a new document:
Deploy the updated web API to Heroku.
Test all this in Postman BEFORE you do any Angular app work.
Create an Angular app. If you wish, you can copy-paste the “angular-validation-intro” code example from the repo and change its name, title, and so on.
Create these components (and add them to the routing feature):
Modify the data model manager service. Add methods that will fetch the data needed by these new components.
Modify each component. Your goal is to get the right data to display in each.